Fix out of memory return

This commit is contained in:
Rerumu
2022-06-25 21:52:06 -04:00
parent 5bdbb9c396
commit 00cbe2df6c
+1 -1
View File
@@ -736,7 +736,7 @@ do
local new = old + num
if new > memory.max then
return -1
return to_u32(-1)
else
memory.min = new