silence compiler warning

master
leitner 11 months ago
parent 1f113d5623
commit 365cfb10c5

@ -38,7 +38,7 @@ size_t scan_int(const char* src,int* dest) {
ok=1; ok=1;
} }
if (!ok) return 0; if (!ok) return 0;
*dest=(neg?-(unsigned int)l:l); *dest=(neg?(int)-(unsigned int)l:l);
return (size_t)(tmp-src); return (size_t)(tmp-src);
} }

@ -39,6 +39,6 @@ size_t scan_longn(const char *src,size_t len,long *dest) {
ok=1; ok=1;
} }
if (!ok) return 0; if (!ok) return 0;
*dest=(neg?-(unsigned long int)l:l); *dest=(neg?(signed long int)-(unsigned long int)l:l);
return (size_t)(tmp-src); return (size_t)(tmp-src);
} }

Loading…
Cancel
Save