I replaced the pattern "x = x + y;" with "x += y;" in a few places in DeltaRational...
authorTim King <taking@cs.nyu.edu>
Thu, 17 Feb 2011 01:10:38 +0000 (01:10 +0000)
committerTim King <taking@cs.nyu.edu>
Thu, 17 Feb 2011 01:10:38 +0000 (01:10 +0000)
src/theory/arith/delta_rational.h

index b75f5334c66e463d2a560447c7628cb974344bd9..c70d26db515efa44ab31a6f019c32732c61518f2 100644 (file)
@@ -96,15 +96,15 @@ public:
   }
 
   DeltaRational& operator*=(const CVC4::Rational& a){
-    c = c * a;
-    k = k * a;
+    c *=  a;
+    k *=  a;
 
     return *(this);
   }
 
   DeltaRational& operator+=(DeltaRational& other){
-    c =c + other.c;
-    k =k + other.k;
+    c += other.c;
+    k += other.k;
 
     return *(this);
   }