diff options
author | Guenter Knauf <lists@gknw.net> | 2010-04-12 16:47:48 +0200 |
---|---|---|
committer | Guenter Knauf <lists@gknw.net> | 2010-04-12 16:47:48 +0200 |
commit | 32edba1999a7597f7022662c43bdee8bcb7511e8 (patch) | |
tree | 0154d2bd5ae94a15dfbe1fe541eb0240be942702 | |
parent | 5ccd7c18073eebbdbaf8fc1d6f598bd0f610ae8d (diff) |
added a cast to silent compiler warning with 64bit systems.
-rw-r--r-- | lib/imap.c | 2 |
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]; } |