Changeset 9fd0b1 in git for factory


Ignore:
Timestamp:
Jun 20, 2011, 6:29:12 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
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
Location:
factory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • factory/config.h.in

    r4e35a89 r9fd0b1  
    9292/************** END OF CONFIGURABLE SECTION **************/
    9393
     94#define NTL_ZZ 1
     95
    9496#endif /* ! INCL_CONFIG_H */
  • 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.