Skip to content

Commit c9533a2

Browse files
committed
prplz to me to change this
1 parent 4f0b03a commit c9533a2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/brainfuck.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ def bf(text):
4848
while ip < len(program):
4949
c = program[ip]
5050
if c == '+':
51-
memory[mp] += 1 % 256
51+
memory[mp] = (memory[mp] + 1) % 256
5252
elif c == '-':
53-
memory[mp] -= 1 % 256
53+
memory[mp] = (memory[mp] - 1) % 256
5454
elif c == '>':
5555
mp += 1
5656
if mp > rightmost:

0 commit comments

Comments
 (0)