Changeset eb4ae8 in git


Ignore:
Timestamp:
Feb 2, 2018, 12:24:48 PM (6 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
1102ddb02cf949cca3f5ee825334601b38376ea5
Parents:
bdba4c7aea5d095e5600cd49b599f5a54db626ba
Message:
fix: use pow(double,double) by explicit casting
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/ffields.cc

    rbdba4c reb4ae8  
    807807  if (n==n_GF) {
    808808    GFInfo* p = (GFInfo *)(parameter);
    809     int c = pow (p->GFChar, p->GFDegree);
     809    int c = (int)pow ((double)p->GFChar, (double)p->GFDegree);
    810810    if ((c == r->m_nfCharQ) && (strcmp(n_ParameterNames(r)[0], p->GFPar_name) == 0))
    811811      return TRUE;
     
    928928  }
    929929
    930   int c = pow (p->GFChar, p->GFDegree);
     930  int c = (int)pow ((double)p->GFChar, (double)p->GFDegree);
    931931
    932932  nfReadTable(c, r);
Note: See TracChangeset for help on using the changeset viewer.