mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-27 14:41:45 +02:00
fix compilation with gcc 6.1.1
This commit is contained in:
parent
5190a8282b
commit
9fbaf4bc16
@ -625,9 +625,10 @@ unsigned RDCartSlot::SelectCart(const QString &svcname,unsigned msecs)
|
|||||||
"(SERVICE=\""+RDEscapeString(svcname)+"\")";
|
"(SERVICE=\""+RDEscapeString(svcname)+"\")";
|
||||||
q=new RDSqlQuery(sql);
|
q=new RDSqlQuery(sql);
|
||||||
while(q->next()) {
|
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();
|
cartnum=q->value(0).toUInt();
|
||||||
diff=::abs(msecs-q->value(1).toInt());
|
diff=::abs(cur_diff);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
delete q;
|
delete q;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user