From a5607d3fa279988880ba7b17e7935fb26e3dbc45 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 17 May 2003 23:36:47 +0000 Subject: make ARRAYSIZE 'return' an int svn-id: r7618 --- common/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/util.h') diff --git a/common/util.h b/common/util.h index 330d9d369b..f240c534be 100644 --- a/common/util.h +++ b/common/util.h @@ -38,7 +38,7 @@ template static inline void SWAP(T &a, T &b) { T tmp = a; a = b; b = tmp; } -#define ARRAYSIZE(x) (sizeof(x) / sizeof(x[0])) +#define ARRAYSIZE(x) ((int)(sizeof(x) / sizeof(x[0]))) int RGBMatch(byte *palette, int r, int g, int b); int Blend(int src, int dst, byte *palette); -- cgit v1.2.3