Skip to content

Commit

Permalink
fix conversion of OCaml Complex.t to C 'double complex'
Browse files Browse the repository at this point in the history
  • Loading branch information
mwweissmann committed May 1, 2016
1 parent 63c548c commit 230aeef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ocaml-posix-math-complex.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <complex.h>
#include <caml/mlvalues.h>

#define Complex_val(v) ((double complex) (Double_field(v, 0) + I * Double_field(v, 0)))
#define Complex_val(v) ((double complex) (Double_field(v, 0) + Double_field(v, 1) * _Complex_I))
CAMLextern value caml_copy_complex(double complex c);

#endif
Expand Down

0 comments on commit 230aeef

Please sign in to comment.