diff options
-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]; } |