fixed a bug of /mod of python version

This commit is contained in:
Koichi Nakamura 2021-01-11 13:48:20 +09:00
parent a85ef5c7a6
commit 29737b6c16

View file

@ -226,8 +226,8 @@ def litstring(ip, np):
return next(np + CELL + read(np))
add_operator('S', litstring)
def divmod():
b = pop()
a = pop()
b = ctypes.c_uint(pop()).value
a = ctypes.c_uint(pop()).value
push(a%b)
push(a//b)
add_simple_operator('/', divmod)