]> pd.if.org Git - pdclib/blobdiff - functions/_PDCLIB/scan.c
_PDCLIB_scan: Correct INT_MAX -> UINT_MAX when initializing width
[pdclib] / functions / _PDCLIB / scan.c
index 7e6c42c4c53c12e2d1e22e1a98b38b73508e05c1..0ecf31ada2393ff94d5d058cef7f75dfa07f563b 100644 (file)
@@ -162,7 +162,7 @@ const char * _PDCLIB_scan( const char * spec, struct _PDCLIB_status_t * status )
     status->width = (int)strtol( spec, (char**)&spec, 10 );
     if ( spec == prev_spec )
     {
-        status->width = INT_MAX;
+        status->width = UINT_MAX;
     }
 
     /* Optional length modifier