From e8cb8d9bc6f4ac3ce93c77f63a435f0081eefaf0 Mon Sep 17 00:00:00 2001 From: JCrawfy Date: Sun, 1 Mar 2020 23:23:20 +1300 Subject: [PATCH] fix compiler error --- include/xlnt/utils/numeric.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);