mirror of
https://github.com/nineties/planckforth
synced 2025-01-14 08:01:27 +01:00
replace "& ~(CELL - 1)" with "% CELL"
This commit is contained in:
parent
c8e87b1dbf
commit
96ceb57bd4
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ ip = 0
|
||||||
np = 0
|
np = 0
|
||||||
|
|
||||||
def aligned(n):
|
def aligned(n):
|
||||||
return (n + CELL - 1) & ~(CELL - 1)
|
return (n + CELL - 1) % CELL
|
||||||
|
|
||||||
def align():
|
def align():
|
||||||
write(HERE_CELL, aligned(read(HERE_CELL)))
|
write(HERE_CELL, aligned(read(HERE_CELL)))
|
||||||
|
|
Loading…
Reference in a new issue