add repr(C) to FFTComplex just in case
authorKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 12 Feb 2019 14:25:54 +0000 (15:25 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 12 Feb 2019 14:25:54 +0000 (15:25 +0100)
nihav-core/src/dsp/fft.rs

index 3727e387c7151460bfa1ebf96b8513f980ec510a..2ab955477265156fa34a419589afd2053aae05ae 100644 (file)
@@ -2,6 +2,7 @@ use std::f32::{self, consts};
 use std::ops::{Not, Neg, Add, AddAssign, Sub, SubAssign, Mul, MulAssign};
 use std::fmt;
 
+#[repr(C)]
 #[derive(Debug,Clone,Copy,PartialEq)]
 pub struct FFTComplex {
     pub re: f32,