Changeset 3da9f4 in git for Singular/ipshell.cc


Ignore:
Timestamp:
Aug 12, 2011, 8:37:14 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
Children:
2b7f4e1c2533023f1826c2b3ff11a6470249af65
Parents:
3373e328c65970d120c33a699dee0a561bb7b0d2
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-08-12 20:37:14+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 13:30:46+01:00
Message:
fix n_GF in rInit
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    r3373e32 r3da9f4  
    49614961      if ((ch!=0) && (ch!=IsPrime(ch)))
    49624962      {
    4963         cf=nInitChar(n_GF,(void*)(long)ch);
     4963        int cc=ch;
     4964        // finding the prime
     4965        int p=2;
     4966        int i=0;
     4967        if ((ch%p!=0)  p=3;
     4968        else p=5;
     4969        loop
     4970        {
     4971          if (cc%p==0) break;
     4972          p+=2;
     4973        }
     4974        while(cc>=1) { cc/=p; i++)
     4975        GFInfo param;
     4976        param.GFDegree=i;
     4977        param.GFChar=p;
     4978        param.GFPar_name=pn->name;
     4979        cf=nInitChar(n_GF,&param);
    49644980        if (cf==NULL) goto rInitError;
    49654981        else ffChar=TRUE;
Note: See TracChangeset for help on using the changeset viewer.