From 49dc454222a223c35091a90ac0b931c8e7ef30f4 Mon Sep 17 00:00:00 2001 From: harrisonhall Date: Thu, 28 May 2020 18:25:11 -0400 Subject: [PATCH] python3 integer division issue --- Python3/src/xpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python3/src/xpc.py b/Python3/src/xpc.py index 9c85942..c7f5ec9 100644 --- a/Python3/src/xpc.py +++ b/Python3/src/xpc.py @@ -120,7 +120,7 @@ class XPlaneConnect(object): buffer = self.readUDP() if len(buffer) < 6: return None - rows = (len(buffer) - 5) / 36 + rows = (len(buffer) - 5) // 36 data = [] for i in range(rows): data.append(struct.unpack_from(b"9f", buffer, 5 + 36*i))