You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1,2,
1,2,3,
[sol3] An error occurred and has been passed to an error handler: sol: runtime error: stack index 4, expected number, received no value: not a numeric type that fits exactly an integer (number maybe has significant decimals) (bad argument into 'void(int, std::tuple<int, int>)')
stack traceback:
[C]: in function 'func3'
[string "..."]:4: in main chunk
as you can see, func1 and func2 works while func3 not.
Looks param location matters, is this expected?
Thanks,
Etorth
The text was updated successfully, but these errors were encountered:
Seems like the Lua stack usage tracking gets screwed up. Whenever the tuple is encountered the sol::stack::multi_check is called with the tracking and index that both already account for the processed stack items. Works fine when the tuple is a first item because when it's encountered both values are 0.
If only to know the original author's idea it could be an easy fix. Unfortunately a seemingly simple fix may actually break a lot of unrelated stuff.
code compiled with lua 5.4 and sol 3.3.0
run result:
as you can see,
func1
andfunc2
works whilefunc3
not.Looks param location matters, is this expected?
Thanks,
Etorth
The text was updated successfully, but these errors were encountered: