]> pd.if.org Git - pdclib/blobdiff - functions/_PDCLIB/strtox_main.c
Removed the header include guard 'optimization'.
[pdclib] / functions / _PDCLIB / strtox_main.c
index fbdf8bbfad27a3fab8124eafa84937602c906ff9..1556ec4bab7a9a201740ae91de8ceb20aedb422a 100644 (file)
@@ -6,7 +6,6 @@
    Permission is granted to use, modify, and / or redistribute at will.
 */
 
-#define _PDCLIB_INT_H _PDCLIB_INT_H
 #include <_PDCLIB_int.h>
 #include <ctype.h>
 #include <errno.h>
@@ -23,7 +22,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