Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ahcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from distutils.ccompiler import new_compiler, CCompiler
from tempfile import NamedTemporaryFile
from subprocess import Popen
from compile import Compiler
from aheui.compile import Compiler
from gentac import TacGenerator
from genc import CCodeGenerator

Expand Down Expand Up @@ -42,7 +42,7 @@ class CmdlineOption(object):
with open(option.source_file, "r") as f:
c = Compiler()
ah_src = f.read()
c.compile(ah_src)
c.compile(ah_src.decode('utf-8'))
c.optimize2()
asm_str = c.write_asm()

Expand Down
Loading