Browse files

benchmark/index.js: Use radix in |parseInt| call

Fixes the following JSHint error:

  ./benchmark/index.js: line 59, col 18, Missing radix parameter.
  • Loading branch information...
1 parent c8c5187 commit ce40a8e8157ea299c5898177456cf68367ea0bd1 @dmajda dmajda committed Sep 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 benchmark/index.js
View
2 benchmark/index.js
@@ -56,7 +56,7 @@ $("#run").click(function() {
* 2. To minimize random errors.
*/
- var runCount = parseInt($("#run-count").val());
+ var runCount = parseInt($("#run-count").val(), 10);
if (isNaN(runCount) || runCount <= 0) {
alert("Number of runs must be a positive integer.");
return;

0 comments on commit ce40a8e

Please sign in to comment.