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

Allow implicit float to int conversions in sol2 #1177

Conversation

lmoureaux
Copy link
Contributor

tolua was implicitly converting floats to ints, but sol2 chokes on this. For
backward compatibility and to fix our own rulesets, disable this check in sol.

Closes #1161.

tolua was implicitly converting floats to ints, but sol2 chokes on this. For
backward compatibility and to fix our own rulesets, disable this check in sol.

Closes longturn#1161.
@lmoureaux lmoureaux requested a review from jwrober July 31, 2022 22:51
Copy link
Collaborator

@jwrober jwrober left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran another auto game with asan. confirmed that the AIs do build partisans and the error did not show up in logs.

@lmoureaux
Copy link
Contributor Author

It wasn't about building partisans, it was about generating them by conquering a city

@jwrober
Copy link
Collaborator

jwrober commented Aug 2, 2022

It wasn't about building partisans, it was about generating them by conquering a city

I observed partisans being generated via taking cities, so I think we are good.

@lmoureaux lmoureaux merged commit f960d8e into longturn:master Aug 2, 2022
@lmoureaux lmoureaux deleted the bugfix/sol-allow-float-to-int-conversion branch August 2, 2022 00:03
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.

Server crash - Lua _deflua_make_partisans_callback()
2 participants