comparison data/model/Labeller.h @ 929:59e7fe1b1003 warnfix_no_size_t

Unsigned removals and warning fixes in data/
author Chris Cannam
date Tue, 17 Jun 2014 14:33:42 +0100
parents 2f85f0fbf7ab
children 2f49be7d4264
comparison
equal deleted inserted replaced
928:6a94bb528e9d 929:59e7fe1b1003
290 if (m_rate == 0.f) { 290 if (m_rate == 0.f) {
291 std::cerr << "ERROR: Labeller::getValueFor: Real-time conversion required, but no sample rate set" << std::endl; 291 std::cerr << "ERROR: Labeller::getValueFor: Real-time conversion required, but no sample rate set" << std::endl;
292 } else if (!prevPoint) { 292 } else if (!prevPoint) {
293 std::cerr << "ERROR: Labeller::getValueFor: Time difference required, but only one point provided" << std::endl; 293 std::cerr << "ERROR: Labeller::getValueFor: Time difference required, but only one point provided" << std::endl;
294 } else { 294 } else {
295 size_t f0 = prevPoint->frame, f1 = newPoint.frame; 295 int f0 = prevPoint->frame, f1 = newPoint.frame;
296 if (m_type == ValueFromDurationToNext || 296 if (m_type == ValueFromDurationToNext ||
297 m_type == ValueFromDurationFromPrevious) { 297 m_type == ValueFromDurationFromPrevious) {
298 value = float(f1 - f0) / m_rate; 298 value = float(f1 - f0) / m_rate;
299 } else { 299 } else {
300 if (f1 > f0) { 300 if (f1 > f0) {