From 425195bf9ce6eb7a023d17947e5cd21cc8fbc935 Mon Sep 17 00:00:00 2001 From: Idriss Chaouch <62848804+CppProgrammer23@users.noreply.github.com> Date: Thu, 20 May 2021 12:11:00 +0100 Subject: [PATCH] update enum Type the first element in an enum is 0, so it's not necessarily to affect values from 0 to 7. --- tiny_gltf.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index 1069c49..c5fa225 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -191,14 +191,14 @@ AAssetManager *asset_manager = nullptr; #endif typedef enum { - NULL_TYPE = 0, - REAL_TYPE = 1, - INT_TYPE = 2, - BOOL_TYPE = 3, - STRING_TYPE = 4, - ARRAY_TYPE = 5, - BINARY_TYPE = 6, - OBJECT_TYPE = 7 + NULL_TYPE, + REAL_TYPE, + INT_TYPE, + BOOL_TYPE, + STRING_TYPE, + ARRAY_TYPE, + BINARY_TYPE, + OBJECT_TYPE } Type; static inline int32_t GetComponentSizeInBytes(uint32_t componentType) {