Changeset 9fd0b1 in git for factory/facAlgExt.cc


Ignore:
Timestamp:
Jun 20, 2011, 6:29:12 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b52fc4b2495505785981d640dcf7eb3e456778ef')
Children:
2d0f7d3bc1abfb71f9873d236dbbea3cf7a7860f
Parents:
4e35a894dd1ecea25a42d6b12a182338771e5732
Message:
resstore SW_RATIONAL on exit to original value

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

Legend:

Unmodified
Added
Removed
  • factory/facAlgExt.cc

    r4e35a89 r9fd0b1  
    103103  ASSERT (getCharacteristic() == 0, "characteristic 0 expected");
    104104
    105   if (!isOn (SW_RATIONAL))
    106     On (SW_RATIONAL);
     105  bool save_rat=!isOn (SW_RATIONAL);
     106  On (SW_RATIONAL);
    107107  CanonicalForm f= F*bCommonDen (F);
    108108  int shift;
     
    112112  CFList factors;
    113113  if (normFactors.length() <= 2)
     114  {
     115    if (save_rat) Off(SW_RATIONAL);
    114116    return CFList (F);
     117  }
    115118
    116119  normFactors.removeFirst();
     
    131134  }
    132135  ASSERT (degree (buf) <= 0, "incomplete factorization");
     136  if (save_rat) Off(SW_RATIONAL);
    133137  return factors;
    134138}
Note: See TracChangeset for help on using the changeset viewer.