From b01971f27e651b8cc4bfefdf0ef763768baf1fa3 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Tue, 12 Feb 2019 15:25:54 +0100 Subject: [PATCH] add repr(C) to FFTComplex just in case --- nihav-core/src/dsp/fft.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/nihav-core/src/dsp/fft.rs b/nihav-core/src/dsp/fft.rs index 3727e38..2ab9554 100644 --- a/nihav-core/src/dsp/fft.rs +++ b/nihav-core/src/dsp/fft.rs @@ -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, -- 2.30.2