mirror of
https://github.com/curl/curl.git
synced 2025-03-31 16:00:35 +08:00
easy: avoid Intel error #2312: pointer cast involving 64-bit pointed-to type
Follow-up to e3f335148adc6742728ff8 Closes #9669
This commit is contained in:
parent
41e1b30ea1
commit
00452e6aaf
@ -1264,7 +1264,7 @@ CURLcode Curl_senddata(struct Curl_easy *data, const void *buffer,
|
||||
if(!result && !n1)
|
||||
return CURLE_AGAIN;
|
||||
|
||||
*n = (size_t)n1;
|
||||
*n = n1;
|
||||
|
||||
return result;
|
||||
}
|
||||
@ -1276,10 +1276,14 @@ CURLcode Curl_senddata(struct Curl_easy *data, const void *buffer,
|
||||
CURLcode curl_easy_send(struct Curl_easy *data, const void *buffer,
|
||||
size_t buflen, size_t *n)
|
||||
{
|
||||
ssize_t written = 0;
|
||||
CURLcode result;
|
||||
if(Curl_is_in_callback(data))
|
||||
return CURLE_RECURSIVE_API_CALL;
|
||||
|
||||
return Curl_senddata(data, buffer, buflen, (ssize_t *)n);
|
||||
result = Curl_senddata(data, buffer, buflen, &written);
|
||||
*n = (size_t)written;
|
||||
return result;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user