diff options
author | mtklein <mtklein@chromium.org> | 2015-08-19 09:51:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-19 09:51:01 -0700 |
commit | c6ad06acefa096716f8dabed5342f9b89dc43dfe (patch) | |
tree | d7f0f880609d4e7876790a846cdbab4702590109 /tests/RTreeTest.cpp | |
parent | 4b013296bf67df6c8d119a8f5a2b3dd6530c0b6f (diff) |
unsigned -> int for counts and indices in picture-related code
also, (C)
BUG=skia:
Review URL: https://codereview.chromium.org/1300163002
Diffstat (limited to 'tests/RTreeTest.cpp')
-rw-r--r-- | tests/RTreeTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/RTreeTest.cpp b/tests/RTreeTest.cpp index 16ccb4f508..b39af6747e 100644 --- a/tests/RTreeTest.cpp +++ b/tests/RTreeTest.cpp @@ -25,8 +25,8 @@ static SkRect random_rect(SkRandom& rand) { return rect; } -static bool verify_query(SkRect query, SkRect rects[], SkTDArray<unsigned>& found) { - SkTDArray<unsigned> expected; +static bool verify_query(SkRect query, SkRect rects[], SkTDArray<int>& found) { + SkTDArray<int> expected; // manually intersect with every rectangle for (int i = 0; i < NUM_RECTS; ++i) { if (SkRect::Intersects(query, rects[i])) { @@ -46,7 +46,7 @@ static bool verify_query(SkRect query, SkRect rects[], SkTDArray<unsigned>& foun static void run_queries(skiatest::Reporter* reporter, SkRandom& rand, SkRect rects[], const SkRTree& tree) { for (size_t i = 0; i < NUM_QUERIES; ++i) { - SkTDArray<unsigned> hits; + SkTDArray<int> hits; SkRect query = random_rect(rand); tree.search(query, &hits); REPORTER_ASSERT(reporter, verify_query(query, rects, hits)); |