fix prev commit (stupid C++ needs explicit typecast)
git-svn-id: svn://localhost/ardour2/branches/3.0@13529 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
ba7f951919
commit
b73d9b585f
@ -226,7 +226,7 @@ Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen)
|
|||||||
double frac = (min_x - x0) / (x1 - x0);
|
double frac = (min_x - x0) / (x1 - x0);
|
||||||
int64_t subveclen = (int64_t) floor (veclen * frac);
|
int64_t subveclen = (int64_t) floor (veclen * frac);
|
||||||
|
|
||||||
subveclen = min (subveclen, veclen);
|
subveclen = min (subveclen, (int64_t)veclen);
|
||||||
|
|
||||||
for (i = 0; i < subveclen; ++i) {
|
for (i = 0; i < subveclen; ++i) {
|
||||||
vec[i] = _list.events().front()->value;
|
vec[i] = _list.events().front()->value;
|
||||||
@ -246,7 +246,7 @@ Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen)
|
|||||||
|
|
||||||
float val;
|
float val;
|
||||||
|
|
||||||
subveclen = min (subveclen, veclen);
|
subveclen = min (subveclen, (int64_t)veclen);
|
||||||
|
|
||||||
val = _list.events().back()->value;
|
val = _list.events().back()->value;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user