Changeset 95a471f in git


Ignore:
Timestamp:
Mar 5, 2013, 2:28:43 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '5a0dde71de01068fad5736a17555c993ecbbf495')
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.