mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Add missing parenthesis for std::max
This commit is contained in:
parent
a7da2a8e88
commit
c6ba9853c9
@ -115,7 +115,7 @@ namespace sol {
|
|||||||
// If all types are `good enough`, simply calculate alignment in case of the worst allocator
|
// If all types are `good enough`, simply calculate alignment in case of the worst allocator
|
||||||
std::size_t worst_required_size = 0;
|
std::size_t worst_required_size = 0;
|
||||||
for (std::size_t ptr = 0; ptr < max_arg_alignment; ptr++) {
|
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;
|
return worst_required_size;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user