From 4ed9acc0627b6b6ca99d711f396fb05d9e8412b0 Mon Sep 17 00:00:00 2001 From: Peter Guy Date: Sun, 3 Dec 2023 22:19:28 -0800 Subject: [PATCH] cast parameter to `make_pair` for macOS `make_pair` on macOS can't handle volatile longs, so cast the first parameter to a long. --- src/SortAlgo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SortAlgo.cpp b/src/SortAlgo.cpp index 866702acc..5463bb4d6 100644 --- a/src/SortAlgo.cpp +++ b/src/SortAlgo.cpp @@ -575,7 +575,7 @@ std::pair PartitionTernaryLL(SortArray& A, ssize_t lo, ssize_t } A.unmark_all(); - return std::make_pair(i,j); + return std::make_pair((ssize_t)i,j); } void QuickSortTernaryLL(SortArray& A, size_t lo, size_t hi)