]> pd.if.org Git - pdclib/blobdiff - functions/_PDCLIB/strtox_main.c
Comment cleanups.
[pdclib] / functions / _PDCLIB / strtox_main.c
index fbdf8bbfad27a3fab8124eafa84937602c906ff9..0a8b27ba98bc0b4bcd9ffa0c78795ff137328dc2 100644 (file)
@@ -1,12 +1,9 @@
-/* $Id$ */
-
 /* _PDCLIB_strtox_main( const char * *, int, _PDCLIB_uintmax_t, _PDCLIB_uintmax_t, int )
 
    This file is part of the Public Domain C Library (PDCLib).
    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 +20,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