]> www.ginac.de Git - ginac.git/blobdiff - ginac/symbol.cpp
Removed exits from numeric.cpp and use array indices instead of push_back.
[ginac.git] / ginac / symbol.cpp
index bf58fd4bacf6bc2833d763af347ec8c9ca2cf839..a84ae4a42623bf915af1ad037abd99b1335c3803 100644 (file)
@@ -3,7 +3,7 @@
  *  Implementation of GiNaC's symbolic objects. */
 
 /*
- *  GiNaC Copyright (C) 1999-2006 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2007 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
@@ -218,7 +218,7 @@ bool symbol::info(unsigned inf) const
                return true;
        if (inf == info_flags::real)
                return domain==domain::real || domain==domain::positive;
-       if (inf == info_flags::nonnegative)
+       if (inf == info_flags::positive || inf == info_flags::nonnegative)
                return domain == domain::positive;
        else
                return inherited::info(inf);