size_t can be 'unsigned long int' on some platforms, we want 'unsigned' from DIM

This commit is contained in:
dickelbeck 2010-01-29 23:55:49 +00:00
parent ce72c1f91b
commit 560970da29
1 changed files with 1 additions and 1 deletions

View File

@ -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 )