forked from M-Labs/artiq
1
0
Fork 0

examples/coredev_test: use augmented assignments

This commit is contained in:
Sebastien Bourdeauducq 2014-08-18 23:17:23 +08:00
parent f6bbcb6789
commit f8e9f1f7ac
1 changed files with 2 additions and 2 deletions

View File

@ -21,10 +21,10 @@ class CompilerTest(AutoContext):
while d*d <= x:
if x % d == 0:
prime = False
d = d + 1
d += 1
if prime:
self.output(x)
x = x + 1
x += 1
self.led.set(0)
if __name__ == "__main__":