From b188da121c1575caa6b0b9755e3f80a6b5e44611 Mon Sep 17 00:00:00 2001 From: Herb Derby Date: Mon, 9 Jul 2018 17:06:09 -0400 Subject: Use simple buffers instead of vectors Start using simple buffers, these will be used for multiple runs latter on. Change-Id: I8dadbed036b7a60d708c49b84bb5e3bb3710f704 Reviewed-on: https://skia-review.googlesource.com/140578 Reviewed-by: Mike Klein Commit-Queue: Herb Derby --- tests/GlyphRunTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/GlyphRunTest.cpp b/tests/GlyphRunTest.cpp index 0e0c441b75..7ec14240e7 100644 --- a/tests/GlyphRunTest.cpp +++ b/tests/GlyphRunTest.cpp @@ -24,7 +24,7 @@ DEF_TEST(GlyphRunGlyphIDSetBasic, reporter) { std::vector test{uniqueGlyphIDs.begin(), uniqueGlyphIDs.end()}; std::sort(test.begin(), test.end()); auto newEnd = std::unique(test.begin(), test.end()); - REPORTER_ASSERT(reporter, uniqueGlyphIDs.size() == newEnd - test.begin()); + REPORTER_ASSERT(reporter, uniqueGlyphIDs.size() == (size_t)(newEnd - test.begin())); REPORTER_ASSERT(reporter, uniqueGlyphIDs.size() == 4); { uint16_t answer[] = {0, 1, 2, 1, 3}; -- cgit v1.2.3