Skip to content

Commit 12771df

Browse files
committed
Use the num_complex::Complex32 instead of redeclaring it
It works around mozilla/cbindgen#450.
1 parent 546e244 commit 12771df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const EBAND_5MS: [usize; 22] = [
2626
// 0 200 400 600 800 1k 1.2 1.4 1.6 2k 2.4 2.8 3.2 4k 4.8 5.6 6.8 8k 9.6 12k 15.6 20k*/
2727
0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16, 20, 24, 28, 34, 40, 48, 60, 78, 100,
2828
];
29-
type Complex = num_complex::Complex<f32>;
29+
type Complex = num_complex::Complex32;
3030

3131
pub(crate) fn compute_band_corr(out: &mut [f32], x: &[Complex], p: &[Complex]) {
3232
for y in out.iter_mut() {

0 commit comments

Comments
 (0)