diff --git a/include/xlnt/utils/numeric.hpp b/include/xlnt/utils/numeric.hpp index 6171ec134..7ccb69aee 100644 --- a/include/xlnt/utils/numeric.hpp +++ b/include/xlnt/utils/numeric.hpp @@ -163,7 +163,7 @@ class number_serialiser return strtod(s.c_str(), nullptr); } char buf[30]; - assert(s.size() < std::size(buf)); + assert(s.size() < sizeof(buf)); auto copy_end = std::copy(s.begin(), s.end(), buf); convert_pt_to_comma(buf, static_cast(copy_end - buf)); return strtod(buf, nullptr);