summaryrefslogtreecommitdiff
path: root/src/common/cbasetypes.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-10-04 20:36:36 +0200
committerHaru <haru@dotalux.com>2015-10-11 00:23:36 +0200
commit5c22b636b315776ea3cd5d279344aac7f5a47548 (patch)
tree96070307820882d07df03597a94302dd6959cfdd /src/common/cbasetypes.h
parentda34200bfe78e6b8efcd08fc6511edcda900d483 (diff)
downloadhercules-5c22b636b315776ea3cd5d279344aac7f5a47548.tar.gz
hercules-5c22b636b315776ea3cd5d279344aac7f5a47548.tar.bz2
hercules-5c22b636b315776ea3cd5d279344aac7f5a47548.tar.xz
hercules-5c22b636b315776ea3cd5d279344aac7f5a47548.zip
Changed VECTOR/BHEAP/ARRAY macros to discourage usage of unsigned loop counters.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/cbasetypes.h')
-rw-r--r--src/common/cbasetypes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/cbasetypes.h b/src/common/cbasetypes.h
index 575428f96..64f21f7e0 100644
--- a/src/common/cbasetypes.h
+++ b/src/common/cbasetypes.h
@@ -391,7 +391,7 @@ typedef char bool;
//////////////////////////////////////////////////////////////////////////
// length of a static array
-#define ARRAYLENGTH(A) ( sizeof(A)/sizeof((A)[0]) )
+#define ARRAYLENGTH(A) ( (int)(sizeof(A)/sizeof((A)[0])) )
//////////////////////////////////////////////////////////////////////////
// Make sure va_copy exists