diff options
| author | w4kfu <gw4kfu@gmail.com> | 2017-06-22 14:01:40 -0400 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-01-16 12:56:14 +0100 |
| commit | d147d92892b294b31f1703685a3cf67b80cadb94 (patch) | |
| tree | ccfce65718aa802f8e240a9dbbdf89b9b6a9518b /miasm2/jitter/jitcore_tcc.py | |
| parent | 3e2364edcb6c4259782e251c236bad1090c8c9e0 (diff) | |
| download | miasm-d147d92892b294b31f1703685a3cf67b80cadb94.tar.gz miasm-d147d92892b294b31f1703685a3cf67b80cadb94.zip | |
append b to the opens mode ; Python on Windows makes a distinction between text and binary files
Diffstat (limited to 'miasm2/jitter/jitcore_tcc.py')
| -rw-r--r-- | miasm2/jitter/jitcore_tcc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/jitter/jitcore_tcc.py b/miasm2/jitter/jitcore_tcc.py index 5b47bf6d..28288400 100644 --- a/miasm2/jitter/jitcore_tcc.py +++ b/miasm2/jitter/jitcore_tcc.py @@ -69,7 +69,7 @@ class JitCore_Tcc(JitCore_Cc_Base): fname_out = os.path.join(self.tempdir, "%s.c" % block_hash) if os.access(fname_out, os.R_OK): - func_code = open(fname_out).read() + func_code = open(fname_out, "rb").read() else: func_code = self.gen_c_code(block.label, block) |