Skip to content

Commit

Permalink
add explicit radix to parseInt calls
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcz committed Jun 15, 2013
1 parent a6d18df commit d81b351
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions median-cut.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,9 @@ var Box = function() {
avg_g /= data.length;
avg_b /= data.length;

return [ parseInt( avg_r ),
parseInt( avg_g ),
parseInt( avg_b ) ];
return [ parseInt( avg_r, 10 ),
parseInt( avg_g, 10 ),
parseInt( avg_b, 10 ) ];

},

Expand Down

0 comments on commit d81b351

Please sign in to comment.