Changeset cffd3e in git for Singular


Ignore:
Timestamp:
Jul 3, 2012, 9:30:01 AM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
83be980908d4dc3e33ce00c36b4e4013e3251a009e806f5c737b83e8f6e3fc5b677007d9b0269175
Parents:
24a9587366a1382c8229660d2521f0345ca048f0
Message:
fix: ringlist with real/complex
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    r24a9587 rcffd3e  
    19771977  int r1=(int)(long)LL->m[0].data;
    19781978  int r2=(int)(long)LL->m[1].data;
    1979   if ((r1<=SHORT_REAL_LENGTH)
     1979  if (L->nr==2) // complex
     1980    R->cf = nInitChar(n_long_C, NULL);
     1981  else if ((r1<=SHORT_REAL_LENGTH)
     1982  && (r2=SHORT_REAL_LENGTH))
     1983    R->cf = nInitChar(n_R, NULL);
     1984  else
     1985    R->cf = nInitChar(n_long_R, NULL);
     1986
     1987  if ((r1<=SHORT_REAL_LENGTH)   // should go into nInitChar
    19801988  && (r2=SHORT_REAL_LENGTH))
    19811989  {
Note: See TracChangeset for help on using the changeset viewer.