Ignore:
Timestamp:
May 26, 2011, 10:29:03 AM (13 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38077648e7239f98078663eb941c3c979511150a')
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/polys/ext_fields/algext.cc

    re676cd r73a9ffb  
    3737
    3838#include <polys/ext_fields/algext.h>
     39
     40/// our type has been defined as a macro in algext.h
     41/// and is accessible by 'naID'
    3942
    4043/// forward declarations
     
    569572BOOLEAN naInitChar(coeffs cf, void * infoStruct)
    570573{
     574  assume( getCoeffType(cf) == naID );
     575 
    571576  ExtInfo *e = (ExtInfo *)infoStruct;
    572577  /// first check whether cf->algring != NULL and delete old ring???
     
    581586  assume(getCoeffType(cf) == naID);                     // coeff type;
    582587 
    583   cf->ch = -cf->algring->cf->ch;   /* propagate characteristic up so that it
    584                                       becomes directly accessible in cf;
    585                                       negative sign to signal that it's an
    586                                       extension field */
     588  /* propagate characteristic up so that it becomes
     589     directly accessible in cf: */
     590  cf->ch = cf->algring->cf->ch;
    587591 
    588592  #ifdef LDEBUG
Note: See TracChangeset for help on using the changeset viewer.