From af51ef383de1e0e160a639ab5d6fb1a6054c1135 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Tue, 23 Jul 2013 07:53:57 +0100 Subject: [PATCH] 'libs/evoral' - Through a compiler extension gcc can implement an array whose size in not known at compile time. MSVC doesn't have this extension. Therefore, use std::vector instead --- libs/evoral/src/Curve.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/evoral/src/Curve.cpp b/libs/evoral/src/Curve.cpp index 6f3532fdcb..a813eb7062 100644 --- a/libs/evoral/src/Curve.cpp +++ b/libs/evoral/src/Curve.cpp @@ -56,8 +56,8 @@ Curve::solve () (www.korf.co.uk/spline.pdf) for more details. */ - double x[npoints]; - double y[npoints]; + vector x(npoints); + vector y(npoints); uint32_t i; ControlList::EventList::const_iterator xx;