Created
May 22, 2012 13:51
-
-
Save bogn/2769213 to your computer and use it in GitHub Desktop.
Ruby 1.9.3p0 hex bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.3p0 :001 > "10FFFF".to_i 16 | |
=> 0 | |
1.9.3p0 :002 > exit | |
bogn@Mojito:~$ irb | |
1.9.3p0 :001 > "10FFFF".to_i(16) | |
=> 1114111 | |
1.9.3p0 :002 > "10FFFF".to_i 16 | |
=> 1114111 | |
und noch mal mit p194 | |
1.9.3p194 :001 > "10FFFF".to_i 16 | |
=> 1114111 | |
1.9.3p194 :002 > "10FFFF".to_i(16) | |
=> 1114111 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment