Changeset 6179c1 in git


Ignore:
Timestamp:
Sep 24, 2011, 9:35:59 AM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '98550b669234b32be762076c32b3be2c35188ac4')
Children:
46008c3216d8f61c9ebca33908df859effe9e989
Parents:
4fc80288a76122a5eefe73be2b02b699ff7caf63
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-09-24 09:35:59+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:13:26+01:00
Message:
fix rInit: ch must be prime (Tst/Old/ch.tst)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    r4fc8028 r6179c1  
    49584958  if (pn->Typ()==INT_CMD)
    49594959  {
    4960     const int ch = (int)(long)pn->Data();
     4960    int ch = (int)(long)pn->Data();
    49614961   
    49624962    /* parameter? -------------------------------------------------------*/
     
    49644964   
    49654965    if (pn == NULL) // no params!?
    4966       cf = nInitChar(ch==0 ? n_Q : n_Zp, (void*)(long)ch);
     4966    {
     4967      if (ch!=0)
     4968      {
     4969        ch=IsPrime(ch);
     4970        cf = nInitChar(n_Zp, (void*)(long)ch);
     4971      }
     4972      else
     4973        cf = nInitChar(n_Q, (void*)(long)ch);
     4974    }
    49674975    else
    49684976    {
Note: See TracChangeset for help on using the changeset viewer.