summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Sörnäs <gusso230@student.liu.se>2019-12-21 18:13:29 +0100
committerGustav Sörnäs <gusso230@student.liu.se>2019-12-21 20:29:35 +0100
commitefac0b6566cb58ffab5c74c389a7345eff7b387b (patch)
treee52a39d92e5980312b76c50eed64fae2cd453d4d
parent663d3b8ab5b0a20d965df40d71ca8d99e50b8595 (diff)
downloadaoc-efac0b6566cb58ffab5c74c389a7345eff7b387b.tar.gz
Bugfix non-ASCII intcode
-rw-r--r--19/py/intcode.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/19/py/intcode.py b/19/py/intcode.py
index 8afa12f..843688c 100644
--- a/19/py/intcode.py
+++ b/19/py/intcode.py
@@ -19,6 +19,8 @@ class Computer(object):
self.instruction_cache = {}
if ascii:
self.SIG_ASCII = True
+ else:
+ self.SIG_ASCII = False
self.reset()