diff options
Diffstat (limited to 'ext/sockets/sockaddr_conv.c')
-rw-r--r-- | ext/sockets/sockaddr_conv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sockets/sockaddr_conv.c b/ext/sockets/sockaddr_conv.c index 1ce109ee8c..57996612d2 100644 --- a/ext/sockets/sockaddr_conv.c +++ b/ext/sockets/sockaddr_conv.c @@ -66,7 +66,7 @@ int php_set_inet6_addr(struct sockaddr_in6 *sin6, char *string, php_socket *php_ unsigned scope_id = 0; if (IS_LONG == is_numeric_string(scope, strlen(scope), &lval, &dval, 0)) { - if (lval > 0 && lval <= UINT_MAX) { + if (lval > 0 && (zend_ulong)lval <= UINT_MAX) { scope_id = lval; } } else { |