diff options
author | John Emmas <johne53@tiscali.co.uk> | 2013-07-23 07:53:57 +0100 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2013-07-23 07:53:57 +0100 |
commit | af51ef383de1e0e160a639ab5d6fb1a6054c1135 (patch) | |
tree | 3141394a30e54b692f9c67e5b5287491d772cea4 /libs | |
parent | f9b99edc4a4036dd767e04a6c5c18e0a0ddf5880 (diff) |
'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
Diffstat (limited to 'libs')
-rw-r--r-- | libs/evoral/src/Curve.cpp | 4 |
1 files 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<double> x(npoints); + vector<double> y(npoints); uint32_t i; ControlList::EventList::const_iterator xx; |