From 18f0e20a118409c0df0f33252549586cae7d2df0 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);