diff --git a/steam/steamid.py b/steam/steamid.py index 8ea5338..183c767 100644 --- a/steam/steamid.py +++ b/steam/steamid.py @@ -289,10 +289,10 @@ def make_steam64(id=0, *args, **kwargs): universe = EUniverse.Public # 64 bit elif value < 2**64: - accountid = value & 0xFFFFFFFF - instance = (value >> 32) & 0xFFFFF - etype = (value >> 52) & 0xF - universe = (value >> 56) & 0xFF + accountid = int(value & 0xFFFFFFFF) + instance = int((value >> 32) & 0xFFFFF) + etype = int((value >> 52) & 0xF) + universe = int((value >> 56) & 0xFF) # invalid account id else: accountid = 0