Changeset 0b7bf7 in git


Ignore:
Timestamp:
Apr 21, 2011, 1:32:08 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
01c1d069f5dba6492844972482dfe1d144a97800
Parents:
c7e3d79fd9a3b15014fb3938e83d45f7eb0893c1
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-04-21 13:32:08+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:24+01:00
Message:
FIX: fixed a bug (due to the sum test for Zn3), together with Frank Seelisch
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/rmodulon.cc

    rc7e3d7 r0b7bf7  
    151151number nrnNeg(number c, const coeffs r)
    152152{
    153   // Attention: This method operates in-place.
    154   mpz_sub((int_number)c, r->modNumber, (int_number)c);
     153  if( !nrnIsZero(c, r) )
     154    // Attention: This method operates in-place.
     155    mpz_sub((int_number)c, r->modNumber, (int_number)c); 
    155156  return c;
    156157}
Note: See TracChangeset for help on using the changeset viewer.