Changeset 046a94 in git for Singular


Ignore:
Timestamp:
Sep 28, 2011, 7:08:54 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
733d247ce0bb53a600a9565cc20a019df1de9856
Parents:
d0340f40c4bd9c7fbfd9dc6788a900be9d21a13b
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-09-28 19:08:54+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:13:42+01:00
Message:
FIX: correct small real fields
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    rd0340f r046a94  
    50255025  && ((strcmp(pn->name,"real")==0) || (strcmp(pn->name,"complex")==0)))
    50265026  {
    5027     LongComplexInfo param;
    50285027    BOOLEAN complex_flag=(strcmp(pn->name,"complex")==0);
    50295028    const int ch=0;
     
    50395038      }
    50405039    }
    5041     // set the parameter name
    5042     if (complex_flag) {
    5043       if (pn->next == NULL)
    5044         param.par_name=(const char*)"i"; //default to i
    5045       else
    5046         param.par_name = (const char*)pn->next->name;
    5047     }
    5048 
    5049     param.float_len = float_len;
    5050     param.float_len2 = float_len2;
    5051     cf=nInitChar(complex_flag ? n_long_C: n_long_R, (void*)&param);
    5052 
     5040    assume( float_len <= float_len2 );
     5041     
     5042    if( !complex_flag && (float_len2 <= (short)SHORT_REAL_LENGTH) )
     5043       cf=nInitChar(n_R, NULL);
     5044    else // longR or longC?
     5045    {
     5046       LongComplexInfo param;
     5047       
     5048       param.float_len = float_len;
     5049       param.float_len2 = float_len2;
     5050       
     5051       // set the parameter name
     5052       if (complex_flag) {
     5053          if (pn->next == NULL)
     5054            param.par_name=(const char*)"i"; //default to i
     5055          else
     5056            param.par_name = (const char*)pn->next->name;
     5057       }
     5058
     5059       cf = nInitChar(complex_flag ? n_long_C: n_long_R, (void*)&param);
     5060    }   
    50535061    assume( cf != NULL );
    50545062  }
Note: See TracChangeset for help on using the changeset viewer.