To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

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