From 8aab19316e44db10ded8ba282869d8a5e2d75d77 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Sun, 5 Jul 2009 08:46:49 +0000 Subject: [PATCH] git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@795 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Demo/CORTEX_AT91SAM3U256_IAR/printf-stdarg.c | 2 +- Demo/CORTEX_LPC1766_GCC_RedSuite/printf-stdarg.c | 2 +- Demo/CORTEX_STM32F107_GCC_Rowley/printf-stdarg.c | 2 +- Demo/ColdFire_MCF51CN128_CodeWarrior/Sources/printf-stdarg.c | 2 +- Demo/ColdFire_MCF52221_CodeWarrior/sources/printf-stdarg.c | 2 +- Demo/ColdFire_MCF52233_Eclipse/RTOSDemo/printf-stdarg.c | 2 +- Demo/ColdFire_MCF52259_CodeWarrior/printf-stdarg.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Demo/CORTEX_AT91SAM3U256_IAR/printf-stdarg.c b/Demo/CORTEX_AT91SAM3U256_IAR/printf-stdarg.c index f6139dc80..b5ac41be7 100644 --- a/Demo/CORTEX_AT91SAM3U256_IAR/printf-stdarg.c +++ b/Demo/CORTEX_AT91SAM3U256_IAR/printf-stdarg.c @@ -101,7 +101,7 @@ static int printi(char **out, int i, int b, int sg, int width, int pad, int letb *s = '\0'; while (u) { - t = (int)u % b; + t = (unsigned int)u % b; if( t >= 10 ) t += letbase - '0' - 10; *--s = (char)(t + '0'); diff --git a/Demo/CORTEX_LPC1766_GCC_RedSuite/printf-stdarg.c b/Demo/CORTEX_LPC1766_GCC_RedSuite/printf-stdarg.c index f6139dc80..b5ac41be7 100644 --- a/Demo/CORTEX_LPC1766_GCC_RedSuite/printf-stdarg.c +++ b/Demo/CORTEX_LPC1766_GCC_RedSuite/printf-stdarg.c @@ -101,7 +101,7 @@ static int printi(char **out, int i, int b, int sg, int width, int pad, int letb *s = '\0'; while (u) { - t = (int)u % b; + t = (unsigned int)u % b; if( t >= 10 ) t += letbase - '0' - 10; *--s = (char)(t + '0'); diff --git a/Demo/CORTEX_STM32F107_GCC_Rowley/printf-stdarg.c b/Demo/CORTEX_STM32F107_GCC_Rowley/printf-stdarg.c index f6139dc80..b5ac41be7 100644 --- a/Demo/CORTEX_STM32F107_GCC_Rowley/printf-stdarg.c +++ b/Demo/CORTEX_STM32F107_GCC_Rowley/printf-stdarg.c @@ -101,7 +101,7 @@ static int printi(char **out, int i, int b, int sg, int width, int pad, int letb *s = '\0'; while (u) { - t = (int)u % b; + t = (unsigned int)u % b; if( t >= 10 ) t += letbase - '0' - 10; *--s = (char)(t + '0'); diff --git a/Demo/ColdFire_MCF51CN128_CodeWarrior/Sources/printf-stdarg.c b/Demo/ColdFire_MCF51CN128_CodeWarrior/Sources/printf-stdarg.c index f6139dc80..b5ac41be7 100644 --- a/Demo/ColdFire_MCF51CN128_CodeWarrior/Sources/printf-stdarg.c +++ b/Demo/ColdFire_MCF51CN128_CodeWarrior/Sources/printf-stdarg.c @@ -101,7 +101,7 @@ static int printi(char **out, int i, int b, int sg, int width, int pad, int letb *s = '\0'; while (u) { - t = (int)u % b; + t = (unsigned int)u % b; if( t >= 10 ) t += letbase - '0' - 10; *--s = (char)(t + '0'); diff --git a/Demo/ColdFire_MCF52221_CodeWarrior/sources/printf-stdarg.c b/Demo/ColdFire_MCF52221_CodeWarrior/sources/printf-stdarg.c index f6139dc80..b5ac41be7 100644 --- a/Demo/ColdFire_MCF52221_CodeWarrior/sources/printf-stdarg.c +++ b/Demo/ColdFire_MCF52221_CodeWarrior/sources/printf-stdarg.c @@ -101,7 +101,7 @@ static int printi(char **out, int i, int b, int sg, int width, int pad, int letb *s = '\0'; while (u) { - t = (int)u % b; + t = (unsigned int)u % b; if( t >= 10 ) t += letbase - '0' - 10; *--s = (char)(t + '0'); diff --git a/Demo/ColdFire_MCF52233_Eclipse/RTOSDemo/printf-stdarg.c b/Demo/ColdFire_MCF52233_Eclipse/RTOSDemo/printf-stdarg.c index f6139dc80..b5ac41be7 100644 --- a/Demo/ColdFire_MCF52233_Eclipse/RTOSDemo/printf-stdarg.c +++ b/Demo/ColdFire_MCF52233_Eclipse/RTOSDemo/printf-stdarg.c @@ -101,7 +101,7 @@ static int printi(char **out, int i, int b, int sg, int width, int pad, int letb *s = '\0'; while (u) { - t = (int)u % b; + t = (unsigned int)u % b; if( t >= 10 ) t += letbase - '0' - 10; *--s = (char)(t + '0'); diff --git a/Demo/ColdFire_MCF52259_CodeWarrior/printf-stdarg.c b/Demo/ColdFire_MCF52259_CodeWarrior/printf-stdarg.c index f6139dc80..b5ac41be7 100644 --- a/Demo/ColdFire_MCF52259_CodeWarrior/printf-stdarg.c +++ b/Demo/ColdFire_MCF52259_CodeWarrior/printf-stdarg.c @@ -101,7 +101,7 @@ static int printi(char **out, int i, int b, int sg, int width, int pad, int letb *s = '\0'; while (u) { - t = (int)u % b; + t = (unsigned int)u % b; if( t >= 10 ) t += letbase - '0' - 10; *--s = (char)(t + '0'); -- 2.39.5