1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

added a cast to silent compiler warning with 64bit systems.

This commit is contained in:
Guenter Knauf 2010-04-12 16:47:48 +02:00
parent 5ccd7c1807
commit 32edba1999

View File

@ -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];
}