X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2F_PDCLIB%2Fstrtox_main.c;h=1556ec4bab7a9a201740ae91de8ceb20aedb422a;hb=b41576197133c1211d6ec353faf93f505f573b8a;hp=fbdf8bbfad27a3fab8124eafa84937602c906ff9;hpb=f93d55176e4db9edfb1840054169003bcca4d1fb;p=pdclib diff --git a/functions/_PDCLIB/strtox_main.c b/functions/_PDCLIB/strtox_main.c index fbdf8bb..1556ec4 100644 --- a/functions/_PDCLIB/strtox_main.c +++ b/functions/_PDCLIB/strtox_main.c @@ -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 #include @@ -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