summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-23 04:08:15 +0100
committerHaru <haru@dotalux.com>2016-02-23 04:08:15 +0100
commit53996663c46f662157beb7c9af7f904a5c5bb01e (patch)
treeffd693d26f80e0b79db7e34ed0094c7adaacacc5 /src/map/pc.c
parent91524e90f861275c6a1ee4d9e37b6b047b60df58 (diff)
downloadhercules-53996663c46f662157beb7c9af7f904a5c5bb01e.tar.gz
hercules-53996663c46f662157beb7c9af7f904a5c5bb01e.tar.bz2
hercules-53996663c46f662157beb7c9af7f904a5c5bb01e.tar.xz
hercules-53996663c46f662157beb7c9af7f904a5c5bb01e.zip
Corrected some warnings in Visual Studio
- Changed literal 1L values used in unit64 bit-shift operations to 1ULL. - Follow-up to f606519c3b611573ade246ec82db26437bf03668 (reported by zackdreaver) Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index ac34910a2..0eda9ebe3 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -998,7 +998,7 @@ int pc_isequip(struct map_session_data *sd,int n)
}
}
//Not equipable by class. [Skotlex]
- if (!(1L<<(sd->class_&MAPID_BASEMASK)&item->class_base[(sd->class_&JOBL_2_1)?1:((sd->class_&JOBL_2_2)?2:0)]))
+ if (!(1ULL<<(sd->class_&MAPID_BASEMASK)&item->class_base[(sd->class_&JOBL_2_1)?1:((sd->class_&JOBL_2_2)?2:0)]))
return 0;
//Not usable by upper class. [Inkfish]
while( 1 ) {
@@ -4842,7 +4842,7 @@ int pc_isUseitem(struct map_session_data *sd,int n)
//Not equipable by class. [Skotlex]
if (!(
- (1L<<(sd->class_&MAPID_BASEMASK)) &
+ (1ULL<<(sd->class_&MAPID_BASEMASK)) &
(item->class_base[(sd->class_&JOBL_2_1) ? 1 : ((sd->class_&JOBL_2_2) ? 2 : 0)])
))
return 0;