mirror of
https://github.com/nineties/planckforth
synced 2025-01-13 08:01:10 +01:00
fixed a bug of /mod of python version
This commit is contained in:
parent
a85ef5c7a6
commit
29737b6c16
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue