Add missing parenthesis for std::max

This commit is contained in:
halx99 2021-12-12 00:51:19 +08:00 committed by GitHub
parent a7da2a8e88
commit c6ba9853c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}