Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua 5.4 non-wrapping decimal literals #50

Merged
merged 2 commits into from
Jan 13, 2022
Merged

Conversation

arnodel
Copy link
Owner

@arnodel arnodel commented Jan 11, 2022

In Lua < 5.4, decimal literals would wrap if they overflowed. In 5.4 they are converted to floats.

Golua was already doing this (probably because the behaviour was previously not specified), so this PR only adds some tests.

In Lua 5.4 they no longer wrap but turn to floats instead
@arnodel arnodel added this to the Lua 5.4 milestone Jan 11, 2022
@codecov
Copy link

codecov bot commented Jan 13, 2022

Codecov Report

Merging #50 (c2565c0) into lua5.4 (a1d2042) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           lua5.4      #50   +/-   ##
=======================================
  Coverage   86.83%   86.83%           
=======================================
  Files          93       93           
  Lines       10073    10073           
=======================================
  Hits         8747     8747           
  Misses       1043     1043           
  Partials      283      283           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a1d2042...c2565c0. Read the comment docs.

@arnodel arnodel merged commit de17e4f into lua5.4 Jan 13, 2022
@arnodel arnodel deleted the lua5.4-integer-literals branch January 13, 2022 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants