diff --git a/Number_types/include/CGAL/GMP/Gmpz_type.h b/Number_types/include/CGAL/GMP/Gmpz_type.h index be1c64b1756..6a09defc8c9 100644 --- a/Number_types/include/CGAL/GMP/Gmpz_type.h +++ b/Number_types/include/CGAL/GMP/Gmpz_type.h @@ -96,7 +96,10 @@ public: { mpz_init_set_ui(mpz(), l); } Gmpz(double d) - { mpz_init_set_d(mpz(), d); } + { + CGAL_warning_msg(is_integral(d), "Gmpz constructed from non-integral double value"); + mpz_init_set_d(mpz(), d); + } Gmpz(const std::string& str, int base = 10) { mpz_init_set_str(mpz(), str.c_str(), base); }