Skip to content

Commit 97187b7

Browse files
authored
Fix typo in fastAmplitude()
1 parent 9c1361a commit 97187b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/dsp/types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ namespace dsp {
8282

8383
inline float fastAmplitude() {
8484
float re_abs = fabsf(re);
85-
float im_abs = fabsf(re);
85+
float im_abs = fabsf(im);
8686
if (re_abs > im_abs) { return re_abs + 0.4f * im_abs; }
8787
return im_abs + 0.4f * re_abs;
8888
}
@@ -125,4 +125,4 @@ namespace dsp {
125125
float l;
126126
float r;
127127
};
128-
}
128+
}

0 commit comments

Comments
 (0)