Skip to content

Commit

Permalink
add intel compiler workaround raised in #10471
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebolewski committed Mar 12, 2015
1 parent e31d017 commit 5b6468a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/ccalltest.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,21 +125,21 @@ complex double cgtest(complex double a) {
complex double* cgptest(complex double *a) {
//Unpack a ComplexPair{Float64} struct
if (verbose) fprintf(stderr,"%g + %g i\n", creal(*a), cimag(*a));
*a += 1 - 2i;
*a += 1 - (2.0*I);
return a;
}

complex float cftest(complex float a) {
//Unpack a ComplexPair{Float32} struct
if (verbose) fprintf(stderr,"%g + %g i\n", creal(a), cimag(a));
a += 1 - 2i;
a += 1 - (2.0*I);
return a;
}

complex float* cfptest(complex float *a) {
//Unpack a ComplexPair{Float64} struct
if (verbose) fprintf(stderr,"%g + %g i\n", creal(*a), cimag(*a));
*a += 1 - 2i;
*a += 1 - (2.0*I);
return a;
}

Expand Down

1 comment on commit 5b6468a

@psanan
Copy link

@psanan psanan commented on 5b6468a Mar 24, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a fourth instance of 2i in this file that could be changed to (2.0*I) as well.

Please sign in to comment.