From e9af5ba162d7442fad6b4fb6a0b3f5483b99900d Mon Sep 17 00:00:00 2001 From: Rakshit Raj Date: Wed, 2 Dec 2020 23:38:46 +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 53c5296a2..bda8c8045 100644 --- a/sorting/count_inversions.cpp +++ b/sorting/count_inversions.cpp @@ -195,7 +195,7 @@ static void test() { 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 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(); + uint16_t size1 = arr1.size(); uint32_t inv_count1 = 4950; uint64_t result1 = sorting::inversion::countInversion(arr1.data(), size1); assert(inv_count1 == result1);