Commit c46e9c2c authored by Tobias Pape's avatar Tobias Pape

byte-arrays cannot be made using array() in RPython

parent 476ce079
......@@ -90,7 +90,7 @@ class Method(Array, Invokable):
def set_number_of_bytecodes(self, value):
# Set the number of bytecodes in this method
self._bytecodes = array('b', [0] * value)
self._bytecodes = ["\x00"] * value
self._inline_cache_class = [None] * value
self._inline_cache_invokable = [None] * value
......@@ -119,7 +119,7 @@ class Method(Array, Invokable):
new_frame.copy_arguments_from(frame)
def replace_bytecodes(self):
newbc = array('b', [0] * len(self._bytecodes))
newbc = ["\x00"] * len(self._bytecodes)
idx = 0
i = 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment