Skip to content

Commit

Permalink
Update ccalltest.c
Browse files Browse the repository at this point in the history
Asked for by @psanan in JuliaLang#10471

Seems pretty obvious and safe to me.
  • Loading branch information
ivarne committed Mar 24, 2015
1 parent c4b5397 commit 03da3a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ccalltest.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ complex_t ctest(complex_t a) {
complex double cgtest(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;
}

Expand Down

0 comments on commit 03da3a3

Please sign in to comment.