Changeset 12777c in git


Ignore:
Timestamp:
Nov 2, 2012, 2:29:36 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '648d28f488f6ff08f5607ff229b9ad9e4a5b93c2')
Children:
1ca456de55bbd08ae9296b88bbf5eadfe1465a57
Parents:
5caede8b6a6317efbf12384a421e0c5b35f8838d
Message:
fix: signed int overflow in nlMult
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/longrat.cc

    r5caede r12777c  
    23742374  if (SR_HDL(a) & SR_HDL(b) & SR_INT)
    23752375  {
    2376     LONG r=(SR_HDL(a)-1L)*(SR_HDL(b)>>1);
     2376    LONG r=(LONG)((unsigned LONG)(SR_HDL(a)-1L))*((unsigned LONG)(SR_HDL(b)>>1));
    23772377    if ((r/(SR_HDL(b)>>1))==(SR_HDL(a)-1L))
    23782378    {
Note: See TracChangeset for help on using the changeset viewer.