fixed befunge

This commit is contained in:
Yessiest 2022-04-18 22:27:39 +04:00
parent 91f249859f
commit 6bcc38d990
1 changed files with 3 additions and 0 deletions

View File

@ -97,6 +97,9 @@ local rw_head = function(field,commands)
function RW_head:pop(value) function RW_head:pop(value)
local value = self.stack[#self.stack] local value = self.stack[#self.stack]
table.remove(self.stack,#self.stack) table.remove(self.stack,#self.stack)
if not value then
return 0
end
return value return value
end end
function RW_head:walk() function RW_head:walk()