aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2018-04-14 22:52:25 +0200
committerMatthias Andree <matthias.andree@gmx.de>2018-04-14 22:52:25 +0200
commit5282cfcd546ae098130a8d4471b21f86d7f34583 (patch)
tree08d1193016b93da757aa7f91b62cd6743e3c6c1b /pop3.c
parent23e22b54ff9d2051727d4cb31a9d54f0e5afc4eb (diff)
downloadfetchmail-5282cfcd546ae098130a8d4471b21f86d7f34583.tar.gz
fetchmail-5282cfcd546ae098130a8d4471b21f86d7f34583.tar.bz2
fetchmail-5282cfcd546ae098130a8d4471b21f86d7f34583.zip
Fix GCC8 ?: operator type promotion warning.
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pop3.c b/pop3.c
index b4800422..fb466902 100644
--- a/pop3.c
+++ b/pop3.c
@@ -914,7 +914,7 @@ static int pop3_slowuidl( int sock, struct query *ctl, int *countp, int *newp)
return ok;
rec = last_uid_in_db(&ctl->oldsaved, id);
- try_nr = rec ? rec->pos : -1;
+ try_nr = rec ? (int)rec->pos : -1;
} else {
try_id = *countp+1;
try_nr = -1;
@@ -939,7 +939,7 @@ static int pop3_slowuidl( int sock, struct query *ctl, int *countp, int *newp)
return ok;
rec = find_uid_by_id(&ctl->oldsaved, id);
- try_nr = rec ? rec->pos : -1;
+ try_nr = rec ? (int)rec->pos : -1;
}
if( try_nr == -1 ) {
try_id--;