]> www.ginac.de Git - ginac.git/blobdiff - check/numeric_consist.cpp
genheader.pl: create a header file 'cint_workaround.h' to fix the broken
[ginac.git] / check / numeric_consist.cpp
index d7edb3b61d71ad5a511dc17686a14594a0240aef..3e581f660761550cc4de28997b5675cec6792aac 100644 (file)
@@ -4,7 +4,7 @@
  *  boolean tests on these numbers like is_integer() etc... */
 
 /*
  *  boolean tests on these numbers like is_integer() etc... */
 
 /*
- *  GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -161,7 +161,7 @@ static unsigned numeric_consist2(void)
     
     // The fix in the workaround left a whole which was fixed hours later...
     ex another_zero = pow(zero,numeric(1)/numeric(2));
     
     // The fix in the workaround left a whole which was fixed hours later...
     ex another_zero = pow(zero,numeric(1)/numeric(2));
-    if (another_zero.compare(exZERO())) {
+    if (!another_zero.is_zero()) {
         clog << "pow(0,1/2) erroneously returned" << another_zero << endl;
         ++result;
     }
         clog << "pow(0,1/2) erroneously returned" << another_zero << endl;
         ++result;
     }