]> www.ginac.de Git - ginac.git/blobdiff - check/exam_numeric.cpp
- use initializers in exception class pole_error.
[ginac.git] / check / exam_numeric.cpp
index aa7bb2d79070ae7e87676630eddec90bc9bd67df..bed17444efaedd36cda072a0b661128aab7e909e 100644 (file)
@@ -4,7 +4,7 @@
  *  tests on these numbers like is_integer() etc... */
 
 /*
- *  GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2001 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
@@ -79,7 +79,7 @@ static unsigned exam_numeric1(void)
        }
        
        e2 = test_int1 + a;
-       if (ex_to_numeric(e2).is_integer()) {
+       if (e2.info(info_flags::integer)) {
                clog << "expression " << e2
                     << " erroneously recognized as integer" << endl;
                ++result;