1
0
mirror of https://github.com/ElvishArtisan/rivendell.git synced 2025-04-27 06:36:37 +02:00

fix compilation with gcc 6.1.1

This commit is contained in:
Daniel Kamil Kozar 2016-05-18 22:05:40 +02:00
parent 5190a8282b
commit 9fbaf4bc16

@ -625,9 +625,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;