X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=src%2Fstdlib%2Fitoa.c;h=57b50b6ffbeb14276fa3b884f0e1a29a603c082c;hb=6f720ff00773571c2fa2d35e67bff68547617639;hp=184a362d7f4f5fb6ba7179ff0df9acb4ecb3d3c8;hpb=807b2dd5b7365eb87b482197af3b4a3f520c14f7;p=msp430-libc.git diff --git a/src/stdlib/itoa.c b/src/stdlib/itoa.c index 184a362..57b50b6 100644 --- a/src/stdlib/itoa.c +++ b/src/stdlib/itoa.c @@ -28,7 +28,7 @@ char *itoa(int num, char *str, int radix) { temp[temp_loc++] = digit + '0'; else temp[temp_loc++] = digit - 10 + 'A'; - ((unsigned int)num) /= radix; + num = (((unsigned int)num) / radix); } while ((unsigned int)num > 0); //now add the sign for radix 10