From 9fc87ea2c5d13352d871165a65ff0248c7ec35f0 Mon Sep 17 00:00:00 2001 From: Rakshit Raj Date: Wed, 2 Dec 2020 23:25:51 +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 2cdbcb577..97d162dc8 100644 --- a/sorting/count_inversions.cpp +++ b/sorting/count_inversions.cpp @@ -196,7 +196,7 @@ static void test() { 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1}; uint64_t size1 = arr1.size(); - uint64_t inv_count1 = 4950; + uint32_t inv_count1 = 4950; uint64_t result1 = sorting::inversion::countInversion(arr1.data(), size1); assert(inv_count1 == result1); // Test 2