mirror of https://github.com/CGAL/cgal
Fix assertion
This commit is contained in:
parent
7599bbede7
commit
0878f3ad8a
|
|
@ -33,7 +33,7 @@ I_Binary_write_uinteger32(std::ostream& out, std::uint32_t u) {
|
||||||
inline void
|
inline void
|
||||||
I_Binary_write_size_t_into_uinteger32 (std::ostream& out, std::size_t s) {
|
I_Binary_write_size_t_into_uinteger32 (std::ostream& out, std::size_t s) {
|
||||||
CGAL_assertion_msg
|
CGAL_assertion_msg
|
||||||
(i <= static_cast<std::size_t>(std::numeric_limits<std::uint32_t>::max()),
|
(s <= static_cast<std::size_t>(std::numeric_limits<std::uint32_t>::max()),
|
||||||
"Trying to write size_t that does not fit in uint32_t");
|
"Trying to write size_t that does not fit in uint32_t");
|
||||||
I_Binary_write_uinteger32 (out, static_cast<std::uint32_t>(s));
|
I_Binary_write_uinteger32 (out, static_cast<std::uint32_t>(s));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue