Changeset 70b3ae in git for Singular/ipshell.cc


Ignore:
Timestamp:
Nov 8, 2013, 5:22:35 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
Children:
85d15b1ccdb95aa5a0dab7c7a66ad09cfd7631ed
Parents:
abb12f44bb1ce32fc8fa27a5f627543824466fce
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-11-08 17:22:35+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-11-08 17:41:31+01:00
Message:
fix: ring constructions with wrong coeffs (tr.517)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    rabb12f r70b3ae  
    50695069      if (ch!=0)
    50705070      {
    5071         if (ch<2)
     5071        int ch2=IsPrime(ch);
     5072        if ((ch<2)||(ch!=ch2))
    50725073        {
    5073           Warn("%d is invalid characteristic of ground field. 32003 is used.", ch);
     5074          Warn("%d is invalid as characteristic of the ground field. 32003 is used.", ch);
    50745075          ch=32003;
    50755076        }
    5076         ch=IsPrime(ch);
    50775077        cf = nInitChar(n_Zp, (void*)(long)ch);
    50785078      }
     
    52305230      else
    52315231      {
     5232        if (mpz_cmp_ui(modBase,0)==0)
     5233        {
     5234          WerrorS("modulus must not be 0");
     5235          goto rInitError;
     5236        }
    52325237        //ringtype = 3;
    52335238        ZnmInfo info;
     
    52405245    else if (cf == NULL)
    52415246    {
     5247      if (mpz_cmp_ui(modBase,0)==0)
     5248      {
     5249        WerrorS("modulus must not be 0");
     5250        goto rInitError;
     5251      }
    52425252      //ringtype = 2;
    52435253      ZnmInfo info;
Note: See TracChangeset for help on using the changeset viewer.