diff options
author | Aras Pranckevicius <aras@nesnausk.org> | 2022-04-04 17:37:01 +0300 |
---|---|---|
committer | Aras Pranckevicius <aras@nesnausk.org> | 2022-04-04 17:37:13 +0300 |
commit | d6f5b02940c8449de856797257e26a57c8e3bdc9 (patch) | |
tree | b25892729b1675ba1fcfef8690fc02c0968766f4 /source/blender/io/wavefront_obj/importer | |
parent | e4289f23604a4dfa1b3ba45b9e5eaf7bf47f420c (diff) |
OBJ: fix printf specifier compile warning on some compilers
Diffstat (limited to 'source/blender/io/wavefront_obj/importer')
-rw-r--r-- | source/blender/io/wavefront_obj/importer/obj_import_file_reader.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/io/wavefront_obj/importer/obj_import_file_reader.cc b/source/blender/io/wavefront_obj/importer/obj_import_file_reader.cc index 7dac8525bf5..c528d220d04 100644 --- a/source/blender/io/wavefront_obj/importer/obj_import_file_reader.cc +++ b/source/blender/io/wavefront_obj/importer/obj_import_file_reader.cc @@ -193,7 +193,7 @@ static void geom_add_polygon(Geometry *geom, -offsets.get_index_offset() - 1; if (corner.vert_index < 0 || corner.vert_index >= global_vertices.vertices.size()) { fprintf(stderr, - "Invalid vertex index %i (valid range [0, %zi)), ignoring face\n", + "Invalid vertex index %i (valid range [0, %zu)), ignoring face\n", corner.vert_index, (size_t)global_vertices.vertices.size()); face_valid = false; @@ -202,7 +202,7 @@ static void geom_add_polygon(Geometry *geom, corner.uv_vert_index += corner.uv_vert_index < 0 ? global_vertices.uv_vertices.size() : -1; if (corner.uv_vert_index < 0 || corner.uv_vert_index >= global_vertices.uv_vertices.size()) { fprintf(stderr, - "Invalid UV index %i (valid range [0, %zi)), ignoring face\n", + "Invalid UV index %i (valid range [0, %zu)), ignoring face\n", corner.uv_vert_index, (size_t)global_vertices.uv_vertices.size()); face_valid = false; @@ -215,7 +215,7 @@ static void geom_add_polygon(Geometry *geom, if (corner.vertex_normal_index < 0 || corner.vertex_normal_index >= global_vertices.vertex_normals.size()) { fprintf(stderr, - "Invalid normal index %i (valid range [0, %zi)), ignoring face\n", + "Invalid normal index %i (valid range [0, %zu)), ignoring face\n", corner.vertex_normal_index, (size_t)global_vertices.vertex_normals.size()); face_valid = false; |