summaryrefslogtreecommitdiff
path: root/lib/multi.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-11-25 02:58:59 +0100
committerYang Tse <yangsita@gmail.com>2010-11-25 02:58:59 +0100
commit5087f89ac854a25c56d975a49827c3b607bdbaf9 (patch)
treedfef66fd54dd65a49f6a2fc00777bd4fa739acd4 /lib/multi.c
parentb3d39275f5f6b8e4443ea84e89348c7577680acc (diff)
downloadcurl-5087f89ac854a25c56d975a49827c3b607bdbaf9.tar.gz
curl_multi_info_read: fix compiler warning: conversion may lose significant bits
Diffstat (limited to 'lib/multi.c')
-rw-r--r--lib/multi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 875e136ee..9f51b7adb 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -41,6 +41,7 @@
#include "sendf.h"
#include "timeval.h"
#include "http.h"
+#include "warnless.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
@@ -1836,7 +1837,7 @@ CURLMsg *curl_multi_info_read(CURLM *multi_handle, int *msgs_in_queue)
/* remove the extracted entry */
Curl_llist_remove(multi->msglist, e, NULL);
- *msgs_in_queue = (int)Curl_llist_count(multi->msglist);
+ *msgs_in_queue = curlx_uztosi(Curl_llist_count(multi->msglist));
return &msg->extmsg;
}