From 88f1bebbc387d342f8045aa795f544012ab8b4d0 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Fri, 13 Oct 2023 11:06:01 -0700 Subject: [PATCH] Use NULL instead of 0 to silence -Wzero-as-null-pointer-constant --- cgltf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgltf.h b/cgltf.h index af24c65..93a2503 100644 --- a/cgltf.h +++ b/cgltf.h @@ -1167,7 +1167,7 @@ cgltf_result cgltf_parse(const cgltf_options* options, const void* data, cgltf_s json_chunk += GlbChunkHeaderSize; - const void* bin = 0; + const void* bin = NULL; cgltf_size bin_size = 0; if (GlbHeaderSize + GlbChunkHeaderSize + json_length + GlbChunkHeaderSize <= size)