diff options
author | Max Horn | 2003-05-17 23:36:47 +0000 |
---|---|---|
committer | Max Horn | 2003-05-17 23:36:47 +0000 |
commit | a5607d3fa279988880ba7b17e7935fb26e3dbc45 (patch) | |
tree | 8e96837be32e1020f725b7be9e56e1e822a8c484 /common/util.h | |
parent | c79d40e1e336f94cd65496b7428fcacb95392691 (diff) | |
download | scummvm-rg350-a5607d3fa279988880ba7b17e7935fb26e3dbc45.tar.gz scummvm-rg350-a5607d3fa279988880ba7b17e7935fb26e3dbc45.tar.bz2 scummvm-rg350-a5607d3fa279988880ba7b17e7935fb26e3dbc45.zip |
make ARRAYSIZE 'return' an int
svn-id: r7618
Diffstat (limited to 'common/util.h')
-rw-r--r-- | common/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<class T> 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); |