Changeset c879ee in git for libpolys/polys/clapconv.cc


Ignore:
Timestamp:
Oct 19, 2012, 6:38:54 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
05fd55e34baa83465ce4306966c9011d1a156232
Parents:
1bc7201c1a771fb5cc842ca4f475ba3ea91e697963e72b40a6237e50811b0e8745201177d25cb979
Message:
Merge pull request #193 from mmklee/64bitIntegersFactorySW

64bit integers factory sw
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/clapconv.cc

    r1bc7201 rc879ee  
    245245{
    246246  if ( f.isImm() )
    247     return n_Init( f.intval(), r->cf->extRing->cf);
     247  {
     248    long longf=f.intval();
     249    int intf=(int) longf;
     250    if((long)intf==longf)
     251    {
     252      assume (r->cf->extRing != NULL);
     253      return n_Init(f.intval(),r->cf->extRing->cf);
     254    }
     255    else return nlRInit( longf );
     256  }
    248257  else
    249258  {
Note: See TracChangeset for help on using the changeset viewer.