mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Fix some error handling in FunC (#599)
This commit is contained in:
parent
653c88aa9d
commit
c6143715cc
5 changed files with 33 additions and 15 deletions
|
@ -266,7 +266,7 @@ int emulate_div(int a, int b) {
|
|||
if ((b & (VarDescr::_NonZero | VarDescr::_Bit)) == (VarDescr::_NonZero | VarDescr::_Bit)) {
|
||||
return a;
|
||||
} else if ((b & (VarDescr::_NonZero | VarDescr::_Bool)) == (VarDescr::_NonZero | VarDescr::_Bool)) {
|
||||
return emulate_negate(b);
|
||||
return emulate_negate(a);
|
||||
}
|
||||
if (b & VarDescr::_Zero) {
|
||||
return VarDescr::_Int | VarDescr::_Nan;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue