mirror of
https://github.com/curl/curl.git
synced 2025-02-05 14:30:10 +08:00
added some extra typecasts to prevent compiler warnings when converting
int to various types
This commit is contained in:
parent
9af7e46f72
commit
4bde770169
@ -939,15 +939,15 @@ static int dprintf_formatf(
|
|||||||
/* Answer the count of characters written. */
|
/* Answer the count of characters written. */
|
||||||
#ifdef HAVE_LONGLONG
|
#ifdef HAVE_LONGLONG
|
||||||
if (p->flags & FLAGS_LONGLONG)
|
if (p->flags & FLAGS_LONGLONG)
|
||||||
*(long long int *) p->data.ptr = done;
|
*(long long *) p->data.ptr = (long long)done;
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
if (p->flags & FLAGS_LONG)
|
if (p->flags & FLAGS_LONG)
|
||||||
*(long int *) p->data.ptr = done;
|
*(long *) p->data.ptr = (long)done;
|
||||||
else if (!(p->flags & FLAGS_SHORT))
|
else if (!(p->flags & FLAGS_SHORT))
|
||||||
*(int *) p->data.ptr = done;
|
*(int *) p->data.ptr = (int)done;
|
||||||
else
|
else
|
||||||
*(short int *) p->data.ptr = done;
|
*(short *) p->data.ptr = (short)done;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user