easy: avoid Intel error #2312: pointer cast involving 64-bit pointed-to type

Follow-up to e3f335148adc6742728ff8

Closes #9669
This commit is contained in:
Daniel Stenberg 2022-10-07 17:50:37 +02:00
parent 41e1b30ea1
commit 00452e6aaf
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;
}
/*