Skip to content

Commit

Permalink
std::max -> std::max<size_t>; according to abseil#952
Browse files Browse the repository at this point in the history
  • Loading branch information
c0re committed Sep 7, 2023
1 parent 7c05348 commit 44b62e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion absl/debugging/failure_signal_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ static bool SetupAlternateStackOnce() {
const size_t page_mask = static_cast<size_t>(sysconf(_SC_PAGESIZE)) - 1;
#endif
size_t stack_size =
(std::max(static_cast<size_t>(SIGSTKSZ), size_t{65536}) + page_mask) &
(std::max<size_t>(static_cast<size_t>(SIGSTKSZ), size_t{65536}) + page_mask) &
~page_mask;
#if defined(ABSL_HAVE_ADDRESS_SANITIZER) || \
defined(ABSL_HAVE_MEMORY_SANITIZER) || defined(ABSL_HAVE_THREAD_SANITIZER)
Expand Down

0 comments on commit 44b62e4

Please sign in to comment.