Changeset 135e78 in git


Ignore:
Timestamp:
Jan 4, 2013, 7:19:46 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'e442a7529eaef48148a355ea8b0406dbed1d8a55')
Children:
7aff6277f913728c83950e3117816735498d245f
Parents:
979bd0f17cd1bda8ba01c30607b8447190698eb6
Message:
fix: 64bit fix: nlNeg
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/longrat.cc

    r979bd0f r135e78  
    873873  if (SR_HDL(a) & SR_HDL(b) & SR_INT)
    874874  {
    875     long i=SR_TO_INT(a);
    876     long j=SR_TO_INT(b);
     875    LONG i=SR_TO_INT(a);
     876    LONG j=SR_TO_INT(b);
    877877    if ((i==-POW_2_28) && (j== -1L))
    878878    {
     
    880880      return nlRInit(POW_2_28);
    881881    }
    882     long r=i%j;
     882    LONG r=i%j;
    883883    if (r==0)
    884884    {
     
    23162316  if(SR_HDL(a) &SR_INT)
    23172317  {
    2318     int r=SR_TO_INT(a);
     2318    LONG r=SR_TO_INT(a);
    23192319    if (r==(-(POW_2_28))) a=nlRInit(POW_2_28);
    23202320    else               a=INT_TO_SR(-r);
Note: See TracChangeset for help on using the changeset viewer.