Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change String#to_i to parse octals with prefix 0o
This is a breaking change. Previously, numbers starting with 0 would be parsed as octals. A previous change in Crystal requires octals start with 0o. Now that is not the case, and they will be parsed as base-10. The 0o prefix must be present to treat it as an octal. This addresses parsing 0 with prefix: true raising an error. Additionally, YAML parsing used the old style. This updates the spec to handle the new parsing.
- Loading branch information
1 parent
639e476
commit fc5610f
Showing
3 changed files
with
28 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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