From 32edba1999a7597f7022662c43bdee8bcb7511e8 Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Mon, 12 Apr 2010 16:47:48 +0200 Subject: [PATCH] added a cast to silent compiler warning with 64bit systems. --- lib/imap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; }