Changeset 31ec8b in git


Ignore:
Timestamp:
Jul 28, 2014, 3:51:36 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '8a337797cc4177aa8747d661d5c4214ea2095dac')
Children:
9433b766beaf1c99459f65a83a44adae134886db
Parents:
2202f91f6024f7fb401cf57d7b9e656a2ea05444
Message:
overflow handling for mult
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r2202f91 r31ec8b  
    954954      && ((long)pTotaldegree(a)>si_max((long)rVar(currRing),(long)currRing->bitmask/2)-(long)pTotaldegree(b)))
    955955      {
    956         Werror("OVERFLOW in mult(d=%ld, d=%ld, max=%ld)",
     956        Warn("possible OVERFLOW in mult(d=%ld, d=%ld, max=%ld)",
    957957          pTotaldegree(a),pTotaldegree(b),currRing->bitmask/2);
    958         pDelete(&a);
    959         pDelete(&b);
    960         return TRUE;
    961958      }
    962959      res->data = (char *)(pMult( a, b));
     
    969966    && (pTotaldegree(a)+pTotaldegree(b)>si_max((long)rVar(currRing),(long)currRing->bitmask/2)))
    970967    {
    971       Werror("OVERFLOW in mult(d=%ld, d=%ld, max=%ld)",
     968      Warn("possible OVERFLOW in mult(d=%ld, d=%ld, max=%ld)",
    972969          pTotaldegree(a),pTotaldegree(b),currRing->bitmask/2);
    973       pDelete(&a);
    974       pDelete(&b);
    975       return TRUE;
    976970    }
    977971    res->data = (char *)(pMult( a, b));
Note: See TracChangeset for help on using the changeset viewer.