  
  QD_API qd_real sqr(const qd_real &a);
  QD_API qd_real sqrt(const qd_real &a);
-@@ -209,36 +262,48 @@ QD_API bool operator==(const qd_real &a,
+@@ -209,36 +268,48 @@ QD_API bool operator==(const qd_real &a,
  QD_API bool operator==(const dd_real &a, const qd_real &b);
  QD_API bool operator==(double a, const qd_real &b);
  QD_API bool operator==(const qd_real &a, double b);

+    x[2]=0.0;
+    x[3]=0.0;
+  }
+
+  operator int () const
+  {

   static void error(const char *msg);
 
   double _hi() const { return x[0]; }
@@ -114,6 +127,7 @@ struct QD_API dd_real {
   dd_real &operator-=(const dd_real &a);
 
   dd_real operator-() const;
