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

Fix #103: Check for a non-empty table before using math.max(unpack(...)) #123

Merged
merged 1 commit into from
Dec 14, 2020

Conversation

wbthomason
Copy link
Owner

Handle changes to math.max (I think...) in new LuaJIT without breaking old versions by checking for an empty table before using math.max(unpack(...))

@clason
Copy link

clason commented Dec 14, 2020

Yep, seems to work fine! (Meaning no Lua errors, at least; can't test whether helptags updates work.)

@wbthomason
Copy link
Owner Author

Great, thanks. I think this is a pretty safe change, so I'll go ahead and merge.

@wbthomason wbthomason merged commit ccfb54c into master Dec 14, 2020
@wbthomason wbthomason deleted the fix-103-new-luajit branch December 14, 2020 14:32
@wbthomason wbthomason linked an issue Dec 14, 2020 that may be closed by this pull request
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.

Math.max changes in LuaJIT
2 participants