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.
This commit is contained in:
Ray Molenkamp
2022-01-11 14:57:54 -07:00
parent 5a6ec0f003
commit 947dc21979

View File

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