diff options
author | Ray Molenkamp <github@lazydodo.com> | 2020-07-13 21:29:53 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2020-07-13 21:29:53 +0300 |
commit | 70992ae270279438aea6118a9a6e56a92d736564 (patch) | |
tree | 0b1198b07b0f4baf670def2534dc5b744149a74c | |
parent | 6e74a8b69f215e63e136cb4c497e738371ac798f (diff) |
Fix: Fix build error with MSVC in BLI_span_test
span.size() returns an uint, causing a signed/unsigned comparison
using 3u sidesteps the issue
-rw-r--r-- | tests/gtests/blenlib/BLI_span_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gtests/blenlib/BLI_span_test.cc b/tests/gtests/blenlib/BLI_span_test.cc index cb1a8b9b6f9..ccc63fd80eb 100644 --- a/tests/gtests/blenlib/BLI_span_test.cc +++ b/tests/gtests/blenlib/BLI_span_test.cc @@ -291,7 +291,7 @@ TEST(span, VoidPointerSpan) float b; double c; - auto func1 = [](Span<void *> span) { EXPECT_EQ(span.size(), 3); }; + auto func1 = [](Span<void *> span) { EXPECT_EQ(span.size(), 3u); }; func1({&a, &b, &c}); } |