diff --git a/core/src/dsp/utils/macros.h b/core/src/dsp/utils/macros.h index 86f79ec..f6d0b08 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