Skip to content

Commit

Permalink
Merge pull request #3553 from rainers/fix1_VC
Browse files Browse the repository at this point in the history
fix Issue 12756 - Cannot build dmd on windows because of longdouble
  • Loading branch information
yebblies committed May 17, 2014
2 parents d0da51e + 7be0655 commit f5f7b13
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/constfold.c
Expand Up @@ -133,12 +133,12 @@ Expression *Add(Type *type, Expression *e1, Expression *e2)
// This rigamarole is necessary so that -0.0 doesn't get
// converted to +0.0 by doing an extraneous add with +0.0
complex_t c1;
real_t r1 = 0.0;
real_t i1 = 0.0;
real_t r1 = ldouble (0.0);
real_t i1 = ldouble (0.0);

complex_t c2;
real_t r2 = 0.0;
real_t i2 = 0.0;
real_t r2 = ldouble (0.0);
real_t i2 = ldouble (0.0);

complex_t v;
int x;
Expand Down Expand Up @@ -218,12 +218,12 @@ Expression *Min(Type *type, Expression *e1, Expression *e2)
// This rigamarole is necessary so that -0.0 doesn't get
// converted to +0.0 by doing an extraneous add with +0.0
complex_t c1;
real_t r1 = 0.0;
real_t i1 = 0.0;
real_t r1 = ldouble (0.0);
real_t i1 = ldouble (0.0);

complex_t c2;
real_t r2 = 0.0;
real_t i2 = 0.0;
real_t r2 = ldouble (0.0);
real_t i2 = ldouble (0.0);

complex_t v;
int x;
Expand Down

0 comments on commit f5f7b13

Please sign in to comment.