From 5d34059f06679161c6e414a0c4e12ecacb2baeea Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Wed, 29 Apr 2020 19:16:35 +0900 Subject: [PATCH] Fix float and int comparison. --- tiny_gltf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index 04ed186..4dfaf8f 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -6513,7 +6513,7 @@ static void SerializeGltfAccessor(Accessor &accessor, json &o) { if (accessor.bufferView >= 0) SerializeNumberProperty("bufferView", accessor.bufferView, o); - if (accessor.byteOffset != 0.0) + if (accessor.byteOffset != 0) SerializeNumberProperty("byteOffset", int(accessor.byteOffset), o); SerializeNumberProperty("componentType", accessor.componentType, o);