Skip to content

Commit 25e3bdc

Browse files
committed
Wrap std::min/std::max in parentheses
1 parent 6cf368a commit 25e3bdc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/cpp-sort/detail/grail_sort.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ namespace cppsort::detail::grail
467467
auto&& proj = utility::as_function(projection);
468468
auto size = last - first;
469469

470-
auto kbuf = std::min(K, LExtBuf);
470+
auto kbuf = (std::min)(K, LExtBuf);
471471
while (kbuf & (kbuf - 1)) {
472472
kbuf &= kbuf - 1; // max power or 2 - just in case
473473
}

include/cpp-sort/probes/dis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ namespace cppsort::probe
9292
while (j <= i && not comp(proj(*lr_cummax[j - 1]), proj(*rl_min_it))
9393
&& (j == 1 || not comp(proj(*rl_min_it), proj(*lr_cummax[j - 2])))) {
9494
// Compute the next value of DM
95-
res = std::max(res, i - j);
95+
res = (std::max)(res, i - j);
9696
// Compute the next value of RL
9797
if (--i <= res) {
9898
return res;

0 commit comments

Comments
 (0)