Changeset e75eab in git


Ignore:
Timestamp:
Sep 27, 2011, 7:01:15 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '98550b669234b32be762076c32b3be2c35188ac4')
Children:
9c79efdbfa9e07161b8b9c4ce598e1b0b476ccd1
Parents:
3fc398ae843900b0c5619932eaf10cc8eaf54ce6
Message:
fix overflow handling: jjTIMES_P, jjPOWER_P

git-svn-id: file:///usr/local/Singular/svn/trunk@14389 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r3fc398 re75eab  
    509509  int dummy;
    510510  if ((u_p!=NULL)
    511   && (pTotaldegree(u_p)*(signed long)v_i > (signed long)currRing->bitmask))
     511  && ((v_i==0) ||
     512       (pTotaldegree(u_p) > (signed long)currRing->bitmask)/(signed long)v_i))
    512513  {
    513514    Werror("OVERFLOW in power(d=%ld, e=%d, max=%ld)",
     
    802803      b=(poly)v->CopyD(POLY_CMD); // works also for VECTOR_CMD
    803804      if ((a!=NULL) && (b!=NULL)
    804       && (pTotaldegree(a)+pTotaldegree(b)>si_max((long)rVar(currRing),(long)currRing->bitmask)))
     805      && ((long)pTotaldegree(a)>si_max((long)rVar(currRing),(long)currRing->bitmask)-(long)pTotaldegree(b)))
    805806      {
    806807        Werror("OVERFLOW in mult(d=%ld, d=%ld, max=%ld)",
Note: See TracChangeset for help on using the changeset viewer.