Skip to content

Commit

Permalink
Add missing parenthesis for std::max
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 authored and ThePhD committed Jan 3, 2022
1 parent 96267b4 commit 50b62c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/sol/stack_core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ namespace sol {
// If all types are `good enough`, simply calculate alignment in case of the worst allocator
std::size_t worst_required_size = 0;
for (std::size_t ptr = 0; ptr < max_arg_alignment; ptr++) {
worst_required_size = std::max(worst_required_size, aligned_space_for<Args...>(ptr));
worst_required_size = (std::max)(worst_required_size, aligned_space_for<Args...>(ptr));
}
return worst_required_size;
}
Expand Down

0 comments on commit 50b62c9

Please sign in to comment.