Skip to content

Commit

Permalink
C++ compatibility
Browse files Browse the repository at this point in the history
Although FFTW is a C program, we try to make it compilable by a C++
compiler as well.  Implicit cast void * ==> double * is not allowed
in C++.
  • Loading branch information
matteo-frigo committed Aug 31, 2016
1 parent 5fd9609 commit 3a3173b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/fftw-bench.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ void setup(bench_problem *p)
/* Regression test: check that fftw_malloc exists and links
* properly */
{
void *ptr = FFTW(malloc(42));
double *ptr = (double *)FFTW(malloc(42));
BENCH_ASSERT(FFTW(alignment_of)(ptr) == 0);
FFTW(free(ptr));
}
Expand Down

0 comments on commit 3a3173b

Please sign in to comment.