From 560970da29b990d19d5f73f6825ae2b05d72f9d7 Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Fri, 29 Jan 2010 23:55:49 +0000 Subject: [PATCH] size_t can be 'unsigned long int' on some platforms, we want 'unsigned' from DIM --- include/macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/macros.h b/include/macros.h index d34066b08d..17abdd50ab 100644 --- a/include/macros.h +++ b/include/macros.h @@ -51,7 +51,7 @@ static inline const wxChar* GetChars( wxString s ) #define NEGATE( x ) (x = -x) /// # of elements in an arrray -#define DIM( x ) ( sizeof(x) / sizeof( (x)[0] ) ) +#define DIM( x ) unsigned( sizeof(x) / sizeof( (x)[0] ) ) // not size_t #define DEG2RAD( Deg ) ( (Deg) * M_PI / 180.0 )