fix compiler warning: rounding, sign extension, or loss of accuracy may result

This commit is contained in:
Yang Tse
2010-12-02 18:46:13 +01:00
parent 5580fb2b9c
commit 07f60235b0
5 changed files with 59 additions and 6 deletions

View File

@@ -78,6 +78,7 @@
#include "rawstr.h"
#include "select.h"
#include "url.h"
#include "warnless.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
@@ -156,7 +157,7 @@ static CURLcode gopher_do(struct connectdata *conn, bool *done)
/* We use Curl_write instead of Curl_sendf to make sure the entire buffer is
sent, which could be sizeable with long selectors. */
k = strlen(sel);
k = curlx_uztosz(strlen(sel));
for(;;) {
result = Curl_write(conn, sockfd, sel, k, &amount);