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);