From 0508308ebaf3eae6fbf9e47c8cf022c1525f5279 Mon Sep 17 00:00:00 2001 From: Dennis Duda Date: Tue, 28 Aug 2018 22:56:36 +0200 Subject: [PATCH] Fixed missing cast for literal `1` to UINT64 --- Source/inv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/inv.cpp b/Source/inv.cpp index c67022355..0ae4409e0 100644 --- a/Source/inv.cpp +++ b/Source/inv.cpp @@ -1852,7 +1852,7 @@ void __fastcall RemoveInvItem(int pnum, int iv) { if ( !( *(UINT64 *)&plr[pnum]._pScrlSpells // TODO: remove cast when pScrlSpells is converted to UINT64 - & (1 << (plr[pnum]._pRSpell - 1))) ) + & ((UINT64)1 << (plr[pnum]._pRSpell - 1))) ) { plr[pnum]._pRSpell = SPL_INVALID; } @@ -1874,7 +1874,7 @@ void __fastcall RemoveSpdBarItem(int pnum, int iv) { if ( !( *(UINT64 *)&plr[pnum]._pScrlSpells // TODO: remove cast when pScrlSpells is converted to UINT64 - & (1 << (plr[pnum]._pRSpell - 1))) ) + & ((UINT64)1 << (plr[pnum]._pRSpell - 1))) ) { plr[pnum]._pRSpell = SPL_INVALID; }