From c241cf3bef737a58162868d51a2c773c5af5abbf Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Tue, 20 Sep 2011 14:58:30 +0000 Subject: Merge from "swig" branch: language binding for Java is compiling and linking. Enable with --enable-language-bindings=java --- src/util/rational_gmp_imp.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/util/rational_gmp_imp.h') diff --git a/src/util/rational_gmp_imp.h b/src/util/rational_gmp_imp.h index b97965169..37c3c8364 100644 --- a/src/util/rational_gmp_imp.h +++ b/src/util/rational_gmp_imp.h @@ -239,6 +239,11 @@ public: return (*this); } + Rational& operator/=(const Rational& y){ + d_value /= y.d_value; + return (*this); + } + /** Returns a string representing the rational in the given base. */ std::string toString(int base = 10) const { return d_value.get_str(base); -- cgit v1.2.3