]> pd.if.org Git - pdclib/blobdiff - functions/_PDCLIB/strtox_main.c
Merged branch stdio_rewrite back into trunk.
[pdclib] / functions / _PDCLIB / strtox_main.c
index fbdf8bbfad27a3fab8124eafa84937602c906ff9..b19a1e7d15d4f2b3cfba54bc3f07b6bac6353120 100644 (file)
@@ -23,7 +23,7 @@ _PDCLIB_uintmax_t _PDCLIB_strtox_main( const char ** p, unsigned int base, uintm
         digit = x - _PDCLIB_digits;
         if ( ( rc < limval ) || ( ( rc == limval ) && ( digit <= limdigit ) ) )
         {
-            rc = rc * base + digit;
+            rc = rc * base + (unsigned)digit;
             ++(*p);
         }
         else