summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyproject.toml2
-rw-r--r--tasd/packet.py8
2 files changed, 5 insertions, 5 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 4792b2c..f3ef742 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "tasd"
-version = "1.0.1"
+version = "1.0.2"
authors = [
{ name="TheMas3212", email="mas3212@gmail.com" },
]
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