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>2020-07-13 21:29:53 +0300
committerRay Molenkamp <github@lazydodo.com>2020-07-13 21:29:53 +0300
commit70992ae270279438aea6118a9a6e56a92d736564 (patch)
tree0b1198b07b0f4baf670def2534dc5b744149a74c
parent6e74a8b69f215e63e136cb4c497e738371ac798f (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.cc2
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});
}