Use unsigned constructor id

This commit is contained in:
Dan 2017-12-06 19:13:50 +01:00
parent 5568e65b43
commit f30746a0b2

View File

@ -35,7 +35,7 @@ class Vector(Object):
def __new__(cls, value: list, t: Object = None) -> bytes: def __new__(cls, value: list, t: Object = None) -> bytes:
return b"".join( return b"".join(
[Int(cls.ID), Int(len(value))] [Int(cls.ID, False), Int(len(value))]
+ [ + [
t(i) if t t(i) if t
else i.write() else i.write()