From 0878f3ad8a86e9576aa41a9415d3a9ce97c70312 Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Mon, 5 Oct 2020 10:44:02 +0200 Subject: [PATCH] Fix assertion --- Stream_support/include/CGAL/IO/binary_file_io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Stream_support/include/CGAL/IO/binary_file_io.h b/Stream_support/include/CGAL/IO/binary_file_io.h index 0405fc53180..165031715fe 100644 --- a/Stream_support/include/CGAL/IO/binary_file_io.h +++ b/Stream_support/include/CGAL/IO/binary_file_io.h @@ -33,7 +33,7 @@ I_Binary_write_uinteger32(std::ostream& out, std::uint32_t u) { inline void I_Binary_write_size_t_into_uinteger32 (std::ostream& out, std::size_t s) { CGAL_assertion_msg - (i <= static_cast(std::numeric_limits::max()), + (s <= static_cast(std::numeric_limits::max()), "Trying to write size_t that does not fit in uint32_t"); I_Binary_write_uinteger32 (out, static_cast(s)); }