Skip to content

Commit

Permalink
fix compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
Crzyrndm committed Mar 1, 2020
1 parent 0ea0540 commit e8cb8d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/xlnt/utils/numeric.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<size_t>(copy_end - buf));
return strtod(buf, nullptr);
Expand Down

0 comments on commit e8cb8d9

Please # to comment.