Changeset 1d579f6 in git for Singular/iparith.cc


Ignore:
Timestamp:
Aug 8, 2012, 7:39:04 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '1d362c315e551a5b527ab0759f8839cf0e94f3a5')
Children:
5a9fa5b7d1ac962a8021ec5c356fac13a269446d
Parents:
b317e9f5bcba11f3fda341729917fba303eff9bd
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2012-08-08 19:39:04+02:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2012-08-08 19:39:49+02:00
Message:
fix: use c-% for mod and % for int
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    rb317e9 r1d579f6  
    11181118    return TRUE;
    11191119  }
    1120   int bb=ABS(b);
    1121   int c=a%bb;
    1122   if(c<0) c+=bb;
     1120  int c=a%b;
    11231121  int r=0;
    11241122  switch (iiOp)
     
    11261124    case '%':
    11271125        r=c;            break;
     1126    case '/':
    11281127    case INTDIV_CMD:
    11291128        r=((a-c) /b);   break;
    1130     case '/':
    1131         r= (a / b);     break;
    11321129  }
    11331130  res->data=(void *)((long)r);
Note: See TracChangeset for help on using the changeset viewer.