Add (unsigned) cast in mixed-enum switch, to prevent compiler errors.

(Not sure which compiler version it was.)
master
Cyp 2010-12-22 00:44:52 +01:00
parent 3df719fc70
commit 9f160d95c0
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ BOOL scriptTypeIsPointer(INTERP_TYPE type)
ASSERT((_scr_user_types)type < ST_MAXTYPE || type >= VAL_REF, "Invalid type: %d", type);
// any value or'ed with VAL_REF is a pointer
if (type >= VAL_REF) return true;
switch (type) {
switch ((unsigned)type) {
case VAL_STRING:
case VAL_OBJ_GETSET:
case VAL_FUNC_EXTERN: