mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-08 08:41:21 +00:00
suppress a few narrowing conversion warnings on windows
This commit is contained in:
parent
b6a5c5f570
commit
e4d30ac61e
1 changed files with 2 additions and 2 deletions
|
@ -1343,12 +1343,12 @@ fluid_ostream_printf(fluid_ostream_t out, const char *format, ...)
|
|||
/* Handle write differently depending on if its a socket or file descriptor */
|
||||
if(!(out & FLUID_SOCKET_FLAG))
|
||||
{
|
||||
return write(out, buf, FLUID_STRLEN(buf));
|
||||
return write(out, buf, (unsigned int)FLUID_STRLEN(buf));
|
||||
}
|
||||
|
||||
#ifdef NETWORK_SUPPORT
|
||||
/* Socket */
|
||||
retval = send(out & ~FLUID_SOCKET_FLAG, buf, FLUID_STRLEN(buf), 0);
|
||||
retval = send(out & ~FLUID_SOCKET_FLAG, buf, (int)FLUID_STRLEN(buf), 0);
|
||||
return retval != SOCKET_ERROR ? retval : -1;
|
||||
#else
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue