We've encountered issues with wrong kind of types being passed to lua signals and functions as API_TYPE_INT in the past. I believe them all to be broken in practice, even if no script has exposed those bugs in a serious way.
Make sure to cast all values passed as API_TYPE_INT as lua_Integer to make sure they are correct no matter C-side type width on the specific host and/or lua-side width.
Pushed to branches other than S3_1, where this did not apply at the moment (must have textual dependency to some other patch earlier in my work branch)
We've encountered issues with wrong kind of types being passed to lua signals and functions as API_TYPE_INT in the past. I believe them all to be broken in practice, even if no script has exposed those bugs in a serious way.
Make sure to cast all values passed as API_TYPE_INT as lua_Integer to make sure they are correct no matter C-side type width on the specific host and/or lua-side width.