use strtol

This commit is contained in:
Love Hornquist Astrand
2009-12-23 17:07:36 +01:00
parent 5d76236458
commit 7a7061ac70

View File

@@ -80,7 +80,7 @@ parse_something (const char *s, const struct units *units,
while(isspace((unsigned char)*p) || *p == ',')
++p;
val = (int) strtod (p, &next); /* strtol(p, &next, 0); */
val = strtol(p, &next, 0);
if (p == next) {
val = 0;
if(!accept_no_val_p)