update enum Type

the first element in an enum is 0, so it's not necessarily to affect values from 0 to 7.
This commit is contained in:
Idriss Chaouch 2021-05-20 12:11:00 +01:00 committed by GitHub
parent ce3a30e612
commit 425195bf9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,14 +191,14 @@ AAssetManager *asset_manager = nullptr;
#endif #endif
typedef enum { typedef enum {
NULL_TYPE = 0, NULL_TYPE,
REAL_TYPE = 1, REAL_TYPE,
INT_TYPE = 2, INT_TYPE,
BOOL_TYPE = 3, BOOL_TYPE,
STRING_TYPE = 4, STRING_TYPE,
ARRAY_TYPE = 5, ARRAY_TYPE,
BINARY_TYPE = 6, BINARY_TYPE,
OBJECT_TYPE = 7 OBJECT_TYPE
} Type; } Type;
static inline int32_t GetComponentSizeInBytes(uint32_t componentType) { static inline int32_t GetComponentSizeInBytes(uint32_t componentType) {