Fix out of memory return
This commit is contained in:
parent
5bdbb9c396
commit
00cbe2df6c
@ -736,7 +736,7 @@ do
|
|||||||
local new = old + num
|
local new = old + num
|
||||||
|
|
||||||
if new > memory.max then
|
if new > memory.max then
|
||||||
return -1
|
return to_u32(-1)
|
||||||
else
|
else
|
||||||
memory.min = new
|
memory.min = new
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user