Merge branch 'stable-gcc611-fix-compile' of https://github.com/xavery/rivendell into xavery-stable-gcc611-fix-compile

This commit is contained in:
Fred Gleason 2016-05-24 13:25:52 -04:00
commit f35263d24c

View File

@ -623,9 +623,10 @@ unsigned RDCartSlot::SelectCart(const QString &svcname,unsigned msecs)
"(SERVICE=\""+RDEscapeString(svcname)+"\")";
q=new RDSqlQuery(sql);
while(q->next()) {
if(::abs(msecs-q->value(1).toInt())<diff) {
int cur_diff = msecs-q->value(1).toInt();
if(::abs(cur_diff)<diff) {
cartnum=q->value(0).toUInt();
diff=::abs(msecs-q->value(1).toInt());
diff=::abs(cur_diff);
}
}
delete q;