Skip to content

Commit

Permalink
use PARROT_VA_PTR_FLOATVAL in float.pmc
Browse files Browse the repository at this point in the history
  • Loading branch information
Reini Urban committed Nov 21, 2014
1 parent 30ca8d3 commit e437eab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pmc/float.pmc
Expand Up @@ -141,9 +141,9 @@ Returns a Parrot string representation of the number.
const FLOATVAL val = SELF.get_number();
#if NUMVAL_SIZE != 8
/* [GH #828] need to cast to double for varargs */
const double d = fabs((double)val);
const PARROT_VA_PTR_FLOATVAL d = fabs((PARROT_VA_PTR_FLOATVAL)val);
const char * const sign = val < 0 ? "-" : "";
return Parrot_sprintf_c(INTERP, "%s%.15g", sign, (double)val);
return Parrot_sprintf_c(INTERP, "%s%.15g", sign, d);
#else
return Parrot_sprintf_c(INTERP, FLOATVAL_FMT, val);
#endif
Expand Down

0 comments on commit e437eab

Please sign in to comment.