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
This commit is contained in:
Ray Molenkamp 2020-07-13 12:29:53 -06:00
parent 6e74a8b69f
commit 70992ae270
1 changed files with 1 additions and 1 deletions

View File

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