Mercurial > hg > octave-lyh
changeset 17203:2899d110c178
Use std::numeric_limits instead of INT_MAX in __glpk__ (bug #39715).
* libinterp/dldfcn/__glpk__.cc: Use std::numeric_limits<int>::max ()
instead of INT_MAX.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 07 Aug 2013 08:43:02 -0700 |
parents | aada14bf74ed |
children | bc20614022aa |
files | libinterp/dldfcn/__glpk__.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/dldfcn/__glpk__.cc +++ b/libinterp/dldfcn/__glpk__.cc @@ -616,7 +616,7 @@ } //-- Simplex iterations limit - par.itlim = INT_MAX; + par.itlim = std::numeric_limits<int>::max (); OCTAVE_GLPK_GET_INT_PARAM ("itlim", par.itlim); //-- Output frequency, in iterations @@ -668,7 +668,7 @@ return retval; } - par.tmlim = INT_MAX; + par.tmlim = std::numeric_limits<int>::max (); OCTAVE_GLPK_GET_INT_PARAM ("tmlim", par.tmlim); par.outdly = 0;