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
{{ message }}
Repository navigation
Function call not negated if multiple return values used #322
{$CLEO .cs}
nop
debug_on
int a, b
if
not a, b = foo()
then
trace "FAILED %d %d" a b
else
trace "OK %d %d" a b
end
terminate_this_custom_script
function foo() : int, int
//return 1 2 // condition result ok
cleo_return_with true 1 2 // condition result ok
end
Function call in example compiles as 0AB1 instead of 8AB1, resulting in incorrect branch to be executed.
Activity
MiranDMC commentedon Apr 23, 2024
Problem occurs when returning single argument too.
x87 commentedon Aug 7, 2024
Fixed in 4.0.0