'libs/evoral' - Through a compiler extension gcc can implement an array whose size...
authorJohn Emmas <johne53@tiscali.co.uk>
Tue, 23 Jul 2013 06:53:57 +0000 (07:53 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Tue, 23 Jul 2013 06:53:57 +0000 (07:53 +0100)
libs/evoral/src/Curve.cpp

index 6f3532fdcb4d95cebf15ba3008c8fbfc3c2067a1..a813eb706280271e7d011d3401f933265127a35c 100644 (file)
@@ -56,8 +56,8 @@ Curve::solve ()
                   (www.korf.co.uk/spline.pdf) for more details.
                */
 
-               double x[npoints];
-               double y[npoints];
+               vector<double> x(npoints);
+               vector<double> y(npoints);
                uint32_t i;
                ControlList::EventList::const_iterator xx;