From 6929f5ce80080d3eda1fa2da0e4b65841d12e5f3 Mon Sep 17 00:00:00 2001 From: Rakshit Raj Date: Wed, 2 Dec 2020 23:27:05 +0530 Subject: [PATCH] Update sorting/count_inversions.cpp Co-authored-by: David Leal --- sorting/count_inversions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sorting/count_inversions.cpp b/sorting/count_inversions.cpp index 97d162dc8..fb8aa9eb8 100644 --- a/sorting/count_inversions.cpp +++ b/sorting/count_inversions.cpp @@ -202,7 +202,7 @@ static void test() { // Test 2 std::vector arr2 = {22, 66, 75, 23, 11, 87, 2, 44, 98, 43}; uint16_t size2 = arr2.size(); - uint64_t inv_count2 = 20; + uint32_t inv_count2 = 20; uint64_t result2 = sorting::inversion::countInversion(arr2.data(), size2); assert(inv_count2 == result2); // Test 3