From 5282cfcd546ae098130a8d4471b21f86d7f34583 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 14 Apr 2018 22:52:25 +0200 Subject: Fix GCC8 ?: operator type promotion warning. --- pop3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pop3.c') 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--; -- cgit v1.2.3