Mercurial > hg > svgui
diff layer/PianoScale.cpp @ 905:b66fb15de477 cxx11
Working through the float/double and int/sv_frame_t fixes
author | Chris Cannam |
---|---|
date | Mon, 09 Mar 2015 14:35:21 +0000 |
parents | e0f08e108064 |
children | 4fe7a09be0fe |
line wrap: on
line diff
--- a/layer/PianoScale.cpp Mon Mar 09 12:02:10 2015 +0000 +++ b/layer/PianoScale.cpp Mon Mar 09 14:35:21 2015 +0000 @@ -40,7 +40,7 @@ for (int i = 0; i < 128; ++i) { double f = Pitch::getFrequencyForPitch(i); - int y = lrintf(v->getYForFrequency(f, minf, maxf, true)); + int y = int(lrint(v->getYForFrequency(f, minf, maxf, true))); if (y < y0 - 2) break; if (y > y1 + 2) {