Changeset 95a471f in git for libpolys


Ignore:
Timestamp:
Mar 5, 2013, 2:28:43 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
Children:
2bd4343ed665612641f66d5ddbe8293ed70e0045
Parents:
24bddc389d70082bf25e49397ca06b884dabd5d3
Message:
fix: better constructors for float stuff
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/mpr_complex.h

    r24bddc r95a471f  
    3535  gmp_float( const int v = 0 )
    3636  {
    37     mpf_init_set_d( t, (double) v );
     37    mpf_init_set_si( t, (long)v );
    3838  }
    3939  gmp_float( const long v )
    4040  {
    41     mpf_init_set_d( t, (double) v );
     41    mpf_init_set_si( t, v );
    4242  }
    4343  gmp_float( const mprfloat v ) // double
    4444  {
    45     mpf_init_set_d( t, (double) v );
     45    mpf_init_set_d( t, v );
    4646  }
    4747  gmp_float( const mpf_t v )
Note: See TracChangeset for help on using the changeset viewer.