]> pd.if.org Git - pdclib.old/blobdiff - functions/_PDCLIB/scan.c
Move existing errno handling to tss_errno, to allow the POSIX platform to just use...
[pdclib.old] / functions / _PDCLIB / scan.c
index 7e6c42c4c53c12e2d1e22e1a98b38b73508e05c1..615d82e0f32ee659d5c9756ac90781b62f9cc660 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
@@ -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':
         {