summaryrefslogtreecommitdiff
path: root/tasd/packet.py
diff options
context:
space:
mode:
Diffstat (limited to 'tasd/packet.py')
-rw-r--r--tasd/packet.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tasd/packet.py b/tasd/packet.py
index 5d9ed68..3f1c2f0 100644
--- a/tasd/packet.py
+++ b/tasd/packet.py
@@ -47,12 +47,12 @@ class _TASDPacket():
setattr(self, variable.name, readString(buffer, index, len(buffer) - index))
index = len(buffer)
case _VariableType.STRING_PLEN:
- plen = readInt8(buffer, index)
+ plen = readUint8(buffer, index)
index += 1
setattr(self, variable.name, readString(buffer, index, plen))
index += plen
case _VariableType.STRING_PEXP:
- pexp = readInt8(buffer, index)
+ pexp = readUint8(buffer, index)
index += 1
plen = readIntN(buffer, index, pexp)
index += pexp
@@ -62,12 +62,12 @@ class _TASDPacket():
setattr(self, variable.name, readBytes(buffer, index, len(buffer)))
index = len(buffer)
case _VariableType.BYTES_PLEN:
- plen = readInt8(buffer, index)
+ plen = readUint8(buffer, index)
index += 1
setattr(self, variable.name, readBytes(buffer, index, plen))
index += plen
case _VariableType.BYTES_PEXP:
- pexp = readInt8(buffer, index)
+ pexp = readUint8(buffer, index)
index += 1
plen = readIntN(buffer, index, pexp)
index += pexp