]> granicus.if.org Git - curl/commitdiff
added a cast to silent compiler warning with 64bit systems.
authorGuenter Knauf <lists@gknw.net>
Mon, 12 Apr 2010 14:47:48 +0000 (16:47 +0200)
committerGuenter Knauf <lists@gknw.net>
Mon, 12 Apr 2010 14:47:48 +0000 (16:47 +0200)
lib/imap.c

index 72ab8da245bd0b3f79ca26227ca34952e7ccc258..f7b895dded827aa0454898d7a3ac31722213b5c4 100644 (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];
 }