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:
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user