From f828b274f9cf2e948b8112493ce93f8af0530f16 Mon Sep 17 00:00:00 2001 From: Venkata Naga Sai Krishna Kolapalli Date: Thu, 5 Feb 2015 15:31:57 +0530 Subject: [PATCH] standalone : Modified the signedness of a variable. This patch modifies a variable num to be u32 instead of s32. Signed-off-by: Venkata Naga Sai Krishna Kolapalli --- lib/bsp/standalone/src/cortexa53/xil_printf.c | 2 +- lib/bsp/standalone/src/cortexa9/xil_printf.c | 2 +- lib/bsp/standalone/src/cortexr5/xil_printf.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 lib/bsp/standalone/src/cortexa53/xil_printf.c diff --git a/lib/bsp/standalone/src/cortexa53/xil_printf.c b/lib/bsp/standalone/src/cortexa53/xil_printf.c old mode 100644 new mode 100755 index 8700d9dc..39e13e82 --- a/lib/bsp/standalone/src/cortexa53/xil_printf.c +++ b/lib/bsp/standalone/src/cortexa53/xil_printf.c @@ -93,7 +93,7 @@ static void outnum( const s32 n, const s32 base, params_t *par) s32 i; char8 outbuf[32]; const char8 digits[] = "0123456789ABCDEF"; - s32 num; + u32 num; for(i = 0; i<32; i++) { outbuf[i] = '0'; } diff --git a/lib/bsp/standalone/src/cortexa9/xil_printf.c b/lib/bsp/standalone/src/cortexa9/xil_printf.c index bfd25997..5c1b467f 100644 --- a/lib/bsp/standalone/src/cortexa9/xil_printf.c +++ b/lib/bsp/standalone/src/cortexa9/xil_printf.c @@ -98,7 +98,7 @@ static void outnum( const s32 n, const s32 base, struct params_s *par) s32 i; char8 outbuf[32]; const char8 digits[] = "0123456789ABCDEF"; - s32 num; + u32 num; for(i = 0; i<32; i++) { outbuf[i] = '0'; } diff --git a/lib/bsp/standalone/src/cortexr5/xil_printf.c b/lib/bsp/standalone/src/cortexr5/xil_printf.c index bfd25997..5c1b467f 100644 --- a/lib/bsp/standalone/src/cortexr5/xil_printf.c +++ b/lib/bsp/standalone/src/cortexr5/xil_printf.c @@ -98,7 +98,7 @@ static void outnum( const s32 n, const s32 base, struct params_s *par) s32 i; char8 outbuf[32]; const char8 digits[] = "0123456789ABCDEF"; - s32 num; + u32 num; for(i = 0; i<32; i++) { outbuf[i] = '0'; }