From ce56d03c3e371163d5cc492e262dcabd3a5e5d2e Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Mon, 29 Mar 2021 22:41:17 +0200 Subject: [PATCH] Another fix --- core/src/dsp/utils/macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/dsp/utils/macros.h b/core/src/dsp/utils/macros.h index 86f79ec0..f6d0b089 100644 --- a/core/src/dsp/utils/macros.h +++ b/core/src/dsp/utils/macros.h @@ -2,5 +2,5 @@ #include #define DSP_SIGN(n) ((n) >= 0) -#define DSP_STEP_CPLX(c) (complex_t{(c.i > 0.0f) ? 1.0f : -1.0f, (c.q > 0.0f) ? 1.0f : -1.0f}) +#define DSP_STEP_CPLX(c) (complex_t{(c.re > 0.0f) ? 1.0f : -1.0f, (c.im > 0.0f) ? 1.0f : -1.0f}) #define DSP_STEP(n) (((n) > 0.0f) ? 1.0f : -1.0f) \ No newline at end of file