Skip to content
Snippets Groups Projects
Commit bce224b0 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Changes length to unsigned long long

parent 7d344ad4
Branches
No related tags found
No related merge requests found
......@@ -113,10 +113,10 @@ class Prefix(object):
@property
def data(self):
return self.tag.data + struct.pack('>i', self.length) + b'\x00'*4
return self.tag.data + struct.pack('>Q', self.length) # + b'\x00'*4
@data.setter
def data(self, value):
self.tag = Tag(data=value[:Tag.SIZE])
self.length = struct.unpack('>i', value[Tag.SIZE:])[0]
self.length = struct.unpack('>Q', value[Tag.SIZE:])[0]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment