about summary refs log tree commit diff stats
path: root/example/jitter/x86_32.py
diff options
context:
space:
mode:
Diffstat (limited to 'example/jitter/x86_32.py')
-rw-r--r--example/jitter/x86_32.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/jitter/x86_32.py b/example/jitter/x86_32.py
index 5272f732..2a73a2ad 100644
--- a/example/jitter/x86_32.py
+++ b/example/jitter/x86_32.py
@@ -20,7 +20,7 @@ def code_sentinelle(jitter):
 myjit = Machine("x86_32").jitter(args.jitter)
 myjit.init_stack()
 
-data = open(args.filename).read()
+data = open(args.filename, 'rb').read()
 run_addr = 0x40000000
 myjit.vm.add_memory_page(run_addr, PAGE_READ | PAGE_WRITE, data)