Change >I to >Q for 64-bit big endian int
This commit is contained in:
parent
3c0fca8979
commit
b4aa64bc39
|
@ -18,7 +18,7 @@ def message_id_generator(start_val):
|
||||||
val += 1
|
val += 1
|
||||||
|
|
||||||
# Convert val to big endian
|
# Convert val to big endian
|
||||||
return struct.pack('>I', val)
|
return struct.pack('>Q', val)
|
||||||
|
|
||||||
return generator
|
return generator
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user