From df90f596b3f8726779775a42f7de25e9d32bf965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Wahlstrand?= Date: Tue, 9 Apr 2019 13:55:43 -0700 Subject: [PATCH] Fixed incompatible pointer warnings --- src/models.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/models.c b/src/models.c index 73f8b9406..71ee25acd 100644 --- a/src/models.c +++ b/src/models.c @@ -775,7 +775,7 @@ void ExportMesh(Mesh mesh, const char *fileName) Material *LoadMaterials(const char *fileName, int *materialCount) { Material *materials = NULL; - unsigned int count = 0; + size_t count = 0; // TODO: Support IQM and GLTF for materials parsing @@ -2711,10 +2711,10 @@ static Model LoadOBJ(const char *fileName) tinyobj_attrib_t attrib; tinyobj_shape_t *meshes = NULL; - unsigned int meshCount = 0; + size_t meshCount = 0; tinyobj_material_t *materials = NULL; - unsigned int materialCount = 0; + size_t materialCount = 0; int dataLength = 0; char *data = NULL;