Commit 6fc6b658 authored by rswindell's avatar rswindell
Browse files

Support byte units (e.g. 'k' for kilobytes, 'm' for megabytes, etc.) in -m

(memory) and -s (stack) option argument handlers.
parent 3c55e3e3
......@@ -1110,7 +1110,7 @@ int main(int argc, char **argv, char** environ)
break;
case 'm':
if(*p==0) p=argv[++argn];
js_max_bytes=parse_byte_count(p, /* units: */1);
js_max_bytes=(ulong)parse_byte_count(p, /* units: */1);
break;
case 'n':
statfp=nulfp;
......@@ -1130,7 +1130,7 @@ int main(int argc, char **argv, char** environ)
break;
case 's':
if(*p==0) p=argv[++argn];
js_cx_stack=parse_byte_count(p, /* units: */1);
js_cx_stack=(ulong)parse_byte_count(p, /* units: */1);
break;
case 't':
if(*p==0) p=argv[++argn];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment