Add (unsigned) cast in mixed-enum switch, to prevent compiler errors.
(Not sure which compiler version it was.)master
parent
3df719fc70
commit
9f160d95c0
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue