mirror of
https://github.com/curl/curl.git
synced 2026-08-25 08:23:31 +03:00
compiler warning: fix
Fix compiler warning: conversion may lose significant bits
This commit is contained in:
parent
c8c8816a97
commit
3c9ff41a1f
6 changed files with 30 additions and 2 deletions
|
|
@ -280,4 +280,20 @@ void curlx_FD_ZERO(fd_set *fdset)
|
|||
#pragma warning(pop)
|
||||
}
|
||||
|
||||
unsigned short curlx_htons(unsigned short usnum)
|
||||
{
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:810) /* conversion may lose significant bits */
|
||||
return htons(usnum);
|
||||
#pragma warning(pop)
|
||||
}
|
||||
|
||||
unsigned short curlx_ntohs(unsigned short usnum)
|
||||
{
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:810) /* conversion may lose significant bits */
|
||||
return ntohs(usnum);
|
||||
#pragma warning(pop)
|
||||
}
|
||||
|
||||
#endif /* __INTEL_COMPILER && __unix__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue