Skip to content

Commit 44b5f58

Browse files
author
Tyr
committed
should return a signed int
1 parent b086692 commit 44b5f58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pythonosc/parsing/osc_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def get_int(dgram, start_index):
112112
if len(dgram[start_index:]) < _INT_DGRAM_LEN:
113113
raise ParseError('Datagram is too short')
114114
return (
115-
struct.unpack('>I',
115+
struct.unpack('>i',
116116
dgram[start_index:start_index + _INT_DGRAM_LEN])[0],
117117
start_index + _INT_DGRAM_LEN)
118118
except (struct.error, TypeError) as e:

0 commit comments

Comments
 (0)