1
0
mirror of synced 2025-01-18 22:24:04 +01:00

Fix round-tripping of unlock bitfields when top bit is set.

This commit is contained in:
Jennifer Taylor 2022-11-13 23:12:13 +00:00
parent c61d08a554
commit 0a66695eeb

View File

@ -1,5 +1,6 @@
# vim: set fileencoding=utf-8
import random
import struct
from typing import Dict, Iterable, List, Optional, Set, Tuple
from typing_extensions import Final
@ -366,4 +367,4 @@ class JubeatBase(CoreHandler, CardManagerHandler, PASELIHandler, Base):
items_list[bucket] |= offset
return items_list
return [struct.unpack("i", struct.pack("I", item))[0] for item in items_list]