]> oss.titaniummirror.com Git - msp430-libc.git/blobdiff - src/stdlib/utoa.c
Imported msp430-libc-20100207
[msp430-libc.git] / src / stdlib / utoa.c
index 4a570c6ba02959731f658ce294c9aa8fe0d24eb1..a68a0556aaf875f2fdcc0ee6c598cd6cfcc652f3 100644 (file)
@@ -21,7 +21,7 @@ char *utoa(unsigned 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);
 
     temp_loc--;