From: Guenter Knauf Date: Mon, 12 Apr 2010 14:47:48 +0000 (+0200) Subject: added a cast to silent compiler warning with 64bit systems. X-Git-Tag: curl-7_20_1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32edba1999a7597f7022662c43bdee8bcb7511e8;p=thirdparty%2Fcurl.git added a cast to silent compiler warning with 64bit systems. --- diff --git a/lib/imap.c b/lib/imap.c index 72ab8da245..f7b895dded 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]; }