summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-01-12 18:31:57 +0100
committerHaru <haru@dotalux.com>2014-01-12 19:08:40 +0100
commitfbd5113e258bd511f948d3d583845d89ac8ec216 (patch)
tree10c5a05d1851366e0a6764d651550bd23ef4d899
parente117c581a6afab60fe77daa05f8d49ef2436a828 (diff)
downloadhercules-fbd5113e258bd511f948d3d583845d89ac8ec216.tar.gz
hercules-fbd5113e258bd511f948d3d583845d89ac8ec216.tar.bz2
hercules-fbd5113e258bd511f948d3d583845d89ac8ec216.tar.xz
hercules-fbd5113e258bd511f948d3d583845d89ac8ec216.zip
Corrected a 32 bit warning
- Follow-up to 82b583b5ef4e729ad2c3c74b26adce16a145605a - Committing on Ind's behalf Signed-off-by: Haru <haru@dotalux.com>
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index a55b43791..d36b1103a 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -2594,7 +2594,7 @@ void* get_val2(struct script_state* st, int64 uid, struct DBMap** ref) {
script->push_val(st->stack, C_NAME, uid, ref);
data = script_getdatatop(st, -1);
script->get_val(st, data);
- return (data->type == C_INT ? (void*)__64BPTRSIZE(data->u.num) : (void*)__64BPTRSIZE(data->u.str));
+ return (data->type == C_INT ? (void*)__64BPTRSIZE((int32)data->u.num) : (void*)__64BPTRSIZE(data->u.str)); // u.num is int32 because it comes from script->get_val
}
/**
* Because, currently, array members with key 0 are indifferenciable from normal variables, we should ensure its actually in