X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Findexed.cpp;h=c8b710ae7f1e63690cbb0356e2e1ccc10159f1e0;hp=445c273ed62057b297843f880dbd1d3d78bd4363;hb=6850c16435de33396ccd505ff26b4d4574fa74cf;hpb=f01c43a7b5cffea04d34ba3d30b41781255ad5d4 diff --git a/ginac/indexed.cpp b/ginac/indexed.cpp index 445c273e..c8b710ae 100644 --- a/ginac/indexed.cpp +++ b/ginac/indexed.cpp @@ -3,7 +3,7 @@ * Implementation of GiNaC's indexed expressions. */ /* - * GiNaC Copyright (C) 1999-2006 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2008 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 @@ -23,6 +23,7 @@ #include #include #include +#include #include "indexed.h" #include "idx.h" @@ -306,7 +307,7 @@ ex indexed::eval(int level) const exvector v = seq; GINAC_ASSERT(is_exactly_a(symtree)); int sig = canonicalize(v.begin() + 1, ex_to(symtree)); - if (sig != INT_MAX) { + if (sig != std::numeric_limits::max()) { // Something has changed while sorting indices, more evaluations later if (sig == 0) return _ex0;