aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuenter Knauf <lists@gknw.net>2010-04-12 16:47:48 +0200
committerGuenter Knauf <lists@gknw.net>2010-04-12 16:47:48 +0200
commit32edba1999a7597f7022662c43bdee8bcb7511e8 (patch)
tree0154d2bd5ae94a15dfbe1fe541eb0240be942702
parent5ccd7c18073eebbdbaf8fc1d6f598bd0f610ae8d (diff)
added a cast to silent compiler warning with 64bit systems.
-rw-r--r--lib/imap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/imap.c b/lib/imap.c
index 72ab8da24..f7b895dde 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -243,7 +243,7 @@ static const char *getcmdid(struct connectdata *conn)
struct imap_conn *imapc = &conn->proto.imapc;
/* get the next id, but wrap at end of table */
- imapc->cmdid = (imapc->cmdid+1)% (sizeof(ids)/sizeof(ids[0]));
+ imapc->cmdid = (int)((imapc->cmdid+1) % (sizeof(ids)/sizeof(ids[0])));
return ids[imapc->cmdid];
}