Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2022-01-12 00:57:54 +0300
committerRay Molenkamp <github@lazydodo.com>2022-01-12 00:57:54 +0300
commit947dc219795b0d0c8f172f49c803272ed079384a (patch)
treeb6eee80cb6f2e6c418da36de73fa0de0d5f28075
parent5a6ec0f0035b6bb8a75b18826f4d0f687ec5ec21 (diff)
Cleanup: Fix build warning with MSVC
comparing a bool > 0 make MSVC emit warning C4804: '>': unsafe use of type 'bool' in operation. int does the job nicely.
-rw-r--r--source/blender/io/wavefront_obj/tests/obj_exporter_tests.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/io/wavefront_obj/tests/obj_exporter_tests.cc b/source/blender/io/wavefront_obj/tests/obj_exporter_tests.cc
index 0feca806f35..f9151bb97f8 100644
--- a/source/blender/io/wavefront_obj/tests/obj_exporter_tests.cc
+++ b/source/blender/io/wavefront_obj/tests/obj_exporter_tests.cc
@@ -236,7 +236,7 @@ TEST(obj_exporter_writer, mtllib)
static bool strings_equal_after_first_lines(const std::string &a, const std::string &b)
{
/* If `dbg_level > 0` then a failing test will print context around the first mismatch. */
- const bool dbg_level = 0;
+ const int dbg_level = 0;
const size_t a_len = a.size();
const size_t b_len = b.size();
const size_t a_next = a.find_first_of('\n');