Fix i64 division on zero shortcut

This commit is contained in:
Rerumu 2022-06-26 02:41:36 -04:00
parent ec20ac5482
commit 22d447395b

View File

@ -187,7 +187,7 @@ function Numeric.divide_unsigned(lhs, rhs)
if num_is_zero(rhs) then if num_is_zero(rhs) then
error("division by zero") error("division by zero")
elseif num_is_zero(lhs) then elseif num_is_zero(lhs) then
return 0 return K_ZERO
end end
local rhs_number = into_u64(rhs) local rhs_number = into_u64(rhs)