]> www.ginac.de Git - ginac.git/blobdiff - ginac/add.cpp
* Fix compilation issues with prereleases of GCC 4.3, at least in theory.
[ginac.git] / ginac / add.cpp
index 353b4a7744079ec1d73549454746a5a36eaf632f..b37ab79def6926ca36c3dc804f068580c10b7b09 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <iostream>
 #include <stdexcept>
+#include <limits>
 
 #include "add.h"
 #include "mul.h"
@@ -258,7 +259,7 @@ bool add::info(unsigned inf) const
 
 int add::degree(const ex & s) const
 {
-       int deg = INT_MIN;
+       int deg = std::numeric_limits<int>::min();
        if (!overall_coeff.is_zero())
                deg = 0;
        
@@ -275,7 +276,7 @@ int add::degree(const ex & s) const
 
 int add::ldegree(const ex & s) const
 {
-       int deg = INT_MAX;
+       int deg = std::numeric_limits<int>::max();
        if (!overall_coeff.is_zero())
                deg = 0;