From 6b7330768465f0e89601f45c75822df0cf4918ae Mon Sep 17 00:00:00 2001 From: Rakshit Raj Date: Wed, 2 Dec 2020 23:24:23 +0530 Subject: [PATCH] Update sorting/count_inversions.cpp Co-authored-by: David Leal --- sorting/count_inversions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sorting/count_inversions.cpp b/sorting/count_inversions.cpp index 02c7e3cc5..571fbe56e 100644 --- a/sorting/count_inversions.cpp +++ b/sorting/count_inversions.cpp @@ -208,8 +208,8 @@ static void test() { // Test 3 std::vector arr3 = {33.1, 45.2, 65.4, 76.5, 1.0, 2.9, 5.4, 7.7, 88.9, 12.4}; - uint64_t size3 = arr3.size(); - uint64_t inv_count3 = 21; + uint16_t size3 = arr3.size(); + uint32_t inv_count3 = 21; uint64_t result3 = sorting::inversion::countInversion(arr3.data(), size3); assert(inv_count3 == result3); // Test 4