Merge branch 'master' into cooking

This commit is contained in:
Wolfgang Bumiller 2014-02-08 10:33:50 +01:00
commit f7e074d88f

2
fold.c
View file

@ -729,7 +729,7 @@ static GMQCC_INLINE ast_expression *fold_intrin_asinh(fold_t *fold, ast_value *a
return fold_constgen_float(fold, asinhf(fold_immvalue_float(a)));
}
static GMQCC_INLINE ast_expression *fold_intrin_atanh(fold_t *fold, ast_value *a) {
return fold_constgen_float(fold, atanhf(fold_immvalue_float(a)));
return fold_constgen_float(fold, (float)atanh(fold_immvalue_float(a)));
}
static GMQCC_INLINE ast_expression *fold_intrin_exp(fold_t *fold, ast_value *a) {
return fold_constgen_float(fold, expf(fold_immvalue_float(a)));