WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

Commit 3142dfff authored by Stefan Marr's avatar Stefan Marr
Browse files

Use signed chars in order to be able to use Python integers directly


Signed-off-by: default avatarStefan Marr <git@stefan-marr.de>
parent a38a36c8
......@@ -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('c')
self._bytecodes = array('b')
self._bytecodes.insert(value - 1, 0)
self._inline_cache_class = [None] * value
self._inline_cache_invokable = [None] * value
......@@ -120,7 +120,7 @@ class Method(Array, Invokable):
new_frame.copy_arguments_from(frame)
def replace_bytecodes(self):
newbc = array('c')
newbc = array('b')
newbc.insert(len(self._bytecodes))
idx = 0
......@@ -150,7 +150,7 @@ class Method(Array, Invokable):
# we copy the new array because it may be shorter, and we don't
# want to upset whatever dependence there is on the length
self._bytecodes = array('c')
self._bytecodes = array('b')
self._bytecodes.insert(idx - 1, 0)
for i in range(0, idx):
self._bytecodes[i] = newbc[i]
......
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