mirror of
https://github.com/curl/curl.git
synced 2026-05-14 04:26:20 +03:00
lib: fix MSVC compiler warnings
Visual C++ complained: warning C4267: '=': conversion from 'size_t' to 'long', possible loss of data warning C4701: potentially uninitialized local variable 'path' used
This commit is contained in:
parent
95c717bbd9
commit
773cef4fae
2 changed files with 2 additions and 2 deletions
|
|
@ -74,7 +74,7 @@ CURLcode Curl_output_digest(struct connectdata *conn,
|
|||
{
|
||||
CURLcode result;
|
||||
struct Curl_easy *data = conn->data;
|
||||
unsigned char *path;
|
||||
unsigned char *path = NULL;
|
||||
char *tmp = NULL;
|
||||
char *response;
|
||||
size_t len;
|
||||
|
|
|
|||
|
|
@ -935,7 +935,7 @@ static int dprintf_formatf(
|
|||
}
|
||||
|
||||
if(prec > (long)maxprec)
|
||||
prec = maxprec-1;
|
||||
prec = (long)maxprec-1;
|
||||
/* RECURSIVE USAGE */
|
||||
len = curl_msnprintf(fptr, left, ".%ld", prec);
|
||||
fptr += len;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue