mirror of
https://github.com/ksherlock/prez.git
synced 2025-08-15 09:27:39 +00:00
fix list math
This commit is contained in:
2
base.py
2
base.py
@@ -139,7 +139,7 @@ class rList(rObject):
|
|||||||
raise TypeError("bad type: {}".format(type(x)))
|
raise TypeError("bad type: {}".format(type(x)))
|
||||||
|
|
||||||
def __bytes__(self):
|
def __bytes__(self):
|
||||||
bb = bytearray(4 + len(self.children))
|
bb = bytearray(4 + len(self.children) * 4)
|
||||||
offset = 0
|
offset = 0
|
||||||
for x in self.children:
|
for x in self.children:
|
||||||
struct.pack_into("<I", bb, offset, x.get_id())
|
struct.pack_into("<I", bb, offset, x.get_id())
|
||||||
|
Reference in New Issue
Block a user