From 8191d87392e75e0f577451892aa4ea11cf9ef0d3 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Wed, 30 Sep 2020 21:21:55 +0100 Subject: [PATCH] steamid: fix failing test --- steam/steamid.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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