1 parent b086692 commit 44b5f58Copy full SHA for 44b5f58
1 file changed
pythonosc/parsing/osc_types.py
@@ -112,7 +112,7 @@ def get_int(dgram, start_index):
112
if len(dgram[start_index:]) < _INT_DGRAM_LEN:
113
raise ParseError('Datagram is too short')
114
return (
115
- struct.unpack('>I',
+ struct.unpack('>i',
116
dgram[start_index:start_index + _INT_DGRAM_LEN])[0],
117
start_index + _INT_DGRAM_LEN)
118
except (struct.error, TypeError) as e:
0 commit comments