Changeset a2cdd62 in git for libpolys/coeffs


Ignore:
Timestamp:
Nov 15, 2011, 7:28:26 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
Children:
7d58b610fedb008c184de5ef38c1cd5bc05d1ecc
Parents:
4e855a74192517a72dcb8d0b593d1a3706ed88d9
Message:
fix: avoid limits.h
Location:
libpolys/coeffs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/ffields.cc

    r4e855a7 ra2cdd62  
    464464      *i *= 10;
    465465      *i += *s++ - '0';
    466       if (*i > (INT_MAX / 10)) *i = *i % r->m_nfCharP;
     466      if (*i > (MAX_INT_VAL / 10)) *i = *i % r->m_nfCharP;
    467467    }
    468468    while (*s >= '0' && *s <= '9');
  • libpolys/coeffs/shortfl.cc

    r4e855a7 ra2cdd62  
    8888  int i;
    8989  float f = nf(n).F();
    90   if (((float)INT_MIN <= f) || ((float)INT_MAX >= f))
     90  if (((float)(-MAX_INT_VAL-1) <= f) || ((float)MAX_INT_VAL >= f))
    9191    i = (int)f;
    9292  else
Note: See TracChangeset for help on using the changeset viewer.