shithub: libsamplerate

Download patch

ref: 353846c39186b1fb8da331bd33e9a73106ba0145
parent: e9f6173ed24a3af48d776d890a3f7caafd48c373
author: Alexander Grund <alexander.grund@tu-dresden.de>
date: Mon Jul 29 12:22:41 EDT 2019

Use C99 variable array members for all converters

Fixes #77

--- a/src/src_linear.c
+++ b/src/src_linear.c
@@ -31,7 +31,7 @@
 	int		reset ;
 	long	in_count, in_used ;
 	long	out_count, out_gen ;
-	float	last_value [1] ;
+	float	last_value [] ;
 } LINEAR_DATA ;
 
 /*----------------------------------------------------------------------------------------
--- a/src/src_zoh.c
+++ b/src/src_zoh.c
@@ -29,7 +29,7 @@
 	int		reset ;
 	long	in_count, in_used ;
 	long	out_count, out_gen ;
-	float	last_value [1] ;
+	float	last_value [] ;
 } ZOH_DATA ;
 
 /*----------------------------------------------------------------------------------------