]> pd.if.org Git - pdclib/blobdiff - functions/_PDCLIB/strtox_main.c
System includes -> local includes.
[pdclib] / functions / _PDCLIB / strtox_main.c
index fbdf8bbfad27a3fab8124eafa84937602c906ff9..accdb6f40788c761b5ef9181868acceb6a403155 100644 (file)
@@ -1,13 +1,10 @@
-/* $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 "_PDCLIB_int.h"
 #include <ctype.h>
 #include <errno.h>
 #include <string.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
@@ -46,7 +43,7 @@ _PDCLIB_uintmax_t _PDCLIB_strtox_main( const char ** p, unsigned int base, uintm
 }
 
 #ifdef TEST
-#include <_PDCLIB_test.h>
+#include "_PDCLIB_test.h"
 #include <errno.h>
 
 int main( void )