benchmark/run: Always parse the -n/--run-count value as decimal integer

This commit is contained in:
David Majda 2013-12-15 21:45:54 +01:00
parent e73adafbf6
commit ff0beb5a8c

View file

@ -126,7 +126,7 @@ while (args.length > 0 && isOption(args[0])) {
if (args.length === 0) {
abort("Missing parameter of the -n/--run-count option.");
}
var runCount = parseInt(args[0]);
var runCount = parseInt(args[0], 10);
if (isNaN(runCount) || runCount <= 0) {
abort("Number of runs must be a positive integer.");
}