Skip to content

fix arithmetic operations for numbers 08 and 09 - #6

Open
tomasodehnal wants to merge 1 commit into
garylaski:masterfrom
tomasodehnal:fix-arithmetics
Open

fix arithmetic operations for numbers 08 and 09#6
tomasodehnal wants to merge 1 commit into
garylaski:masterfrom
tomasodehnal:fix-arithmetics

Conversation

@tomasodehnal

Copy link
Copy Markdown

When a number in an arithmetic operation has a leading zero, it is interpreted as an octal number. For numbers 08 and 09 this causes an errors similar to:

../scuesplit: line 21: 08: value too great for base (error token is "08")

This commit ensures the numbers are interpreted as decimals where applicable.

When a number in an arithmetic operation has a leading zero, it is interpreted as an octal number. For numbers 08 and 09 this causes an errors similar to:
../scuesplit: line 21: 08: value too great for base (error token is "08")

This commit ensures the numbers are interpreted as decimals where applicable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant