Skip to content
This repository has been archived by the owner on May 7, 2018. It is now read-only.

Commit

Permalink
Fix Integer syntax not supported by 1.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
nateberkopec committed Nov 6, 2014
1 parent bce4f1c commit 51dcdcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion okjson.rb
Expand Up @@ -268,7 +268,7 @@ def numtok(s)
elsif m[2]
[:val, m[0], Float(m[0])]
else
[:val, m[0], Integer(m[1])*(10**Integer(m[3][1..-1], 10))]
[:val, m[0], Integer(m[1])*(10**m[3][1..-1].to_i(10))]
end
else
[]
Expand Down

0 comments on commit 51dcdcc

Please sign in to comment.