diff --git a/Modular_arithmetic/include/CGAL/Modular_arithmetic/Residue_type.h b/Modular_arithmetic/include/CGAL/Modular_arithmetic/Residue_type.h index dad1a6e5685..b8254b1c56f 100644 --- a/Modular_arithmetic/include/CGAL/Modular_arithmetic/Residue_type.h +++ b/Modular_arithmetic/include/CGAL/Modular_arithmetic/Residue_type.h @@ -232,6 +232,11 @@ public: Residue (long n) { x_= RES_soft_reduce (static_cast< double > (n % get_prime_int())); } + + //! constructor of Residue, from long long + Residue (long long n) { + x_= RES_soft_reduce (static_cast< double > (n % get_prime_int())); + } //! Access operator for x, \c const const double& x() const { return x_; }