xcf: Don't cast int to enum that can't hold that int value

This commit is contained in:
Albert Astals Cid
2019-01-27 12:50:19 +01:00
parent 3dee6f7c47
commit 964624ba40
2 changed files with 21 additions and 12 deletions

View File

@ -125,7 +125,8 @@ typedef enum {
PROP_PARASITES = 21,
PROP_UNIT = 22,
PROP_PATHS = 23,
PROP_USER_UNIT = 24
PROP_USER_UNIT = 24,
MAX_SUPPORTED_PROPTYPE // should always be at the end so its value is last + 1
} PropType;
// From GIMP "xcf.c" v1.2