From: richardbarry Date: Sun, 5 Jul 2009 08:46:49 +0000 (+0000) Subject: git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@795 1d2547de-c912-0410... X-Git-Tag: V5.4.1~30 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8aab19316e44db10ded8ba282869d8a5e2d75d77;p=freertos git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@795 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- 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');