X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2F_PDCLIB%2Fscan.c;h=615d82e0f32ee659d5c9756ac90781b62f9cc660;hb=da7af311e101d691c9e7020495d01948c7611296;hp=57f9831e457cd3dc918e4341befb2add07ced794;hpb=10f020f1a39804bbef8cd1cf35ef7c9a8e75c7d6;p=pdclib.old diff --git a/functions/_PDCLIB/scan.c b/functions/_PDCLIB/scan.c index 57f9831..615d82e 100644 --- a/functions/_PDCLIB/scan.c +++ b/functions/_PDCLIB/scan.c @@ -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 = SIZE_MAX; + status->width = UINT_MAX; } /* Optional length modifier @@ -386,7 +386,8 @@ const char * _PDCLIB_scan( const char * spec, struct _PDCLIB_status_t * status ) } case 'p': status->base = 16; - status->flags |= E_unsigned; + // TODO: Like _PDCLIB_print, E_pointer(?) + status->flags |= E_unsigned | E_long; break; case 'n': {