Use a better type for replacement of ssize_t
This commit is contained in:
parent
8aca832441
commit
aec3790a19
@ -44,6 +44,7 @@
|
|||||||
#include "network/network_config.hpp"
|
#include "network/network_config.hpp"
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// For Windows XP support
|
// For Windows XP support
|
||||||
@ -178,8 +179,8 @@ stk_inet_pton6(const char *src, void *dest)
|
|||||||
* Since some memmove()'s erroneously fail to handle
|
* Since some memmove()'s erroneously fail to handle
|
||||||
* overlapping regions, we'll do the shift by hand.
|
* overlapping regions, we'll do the shift by hand.
|
||||||
*/
|
*/
|
||||||
const size_t n = tp - colonp;
|
const ptrdiff_t n = tp - colonp;
|
||||||
size_t i;
|
ptrdiff_t i;
|
||||||
|
|
||||||
if(tp == endp)
|
if(tp == endp)
|
||||||
return (0);
|
return (0);
|
||||||
|
Loading…
Reference in New Issue
Block a user