Changeset 73a9ffb in git for libpolys/coeffs/rmodulon.cc


Ignore:
Timestamp:
May 26, 2011, 10:29:03 AM (12 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
488808e90a9444d2ce5d16be059643fdd2e8629e
Parents:
e676cdf123bc41ae953d7fd58106263f5fd02d0c
git-author:
Frank Seelisch <seelisch@mathematik.uni-kl.de>2011-05-26 10:29:03+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:36:53+01:00
Message:
made sure that ch is properly set everywhere, and ch >= 0; more ASSUMEs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/rmodulon.cc

    re676cd r73a9ffb  
    2424#include <string.h>
    2525
     26/// Our Type!
     27static const n_coeffType ID = n_Zn;
     28
    2629extern omBin gmp_nrz_bin;
    2730
     
    4548BOOLEAN nrnInitChar (coeffs r, void* p)
    4649{
    47  
     50  assume( getCoeffType(r) == ID );
    4851  nrnInitExp((int)(long)(p), r);
    4952  r->ringtype = 2;
    50   r->type = n_Zn;
     53 
     54  /* next computation may yield wrong characteristic as r->modNumber
     55     is a GMP number */
     56  r->ch = mpz_get_ui(r->modNumber);
    5157
    5258  r->cfInit        = nrnInit;
Note: See TracChangeset for help on using the changeset viewer.