Commit 560970da authored by dickelbeck's avatar dickelbeck

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

parent ce72c1f9
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment