From 5c22b636b315776ea3cd5d279344aac7f5a47548 Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 4 Oct 2015 20:36:36 +0200 Subject: Changed VECTOR/BHEAP/ARRAY macros to discourage usage of unsigned loop counters. Signed-off-by: Haru --- src/common/cbasetypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/cbasetypes.h') 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 -- cgit v1.2.3-60-g2f50