Skip to content

Commit b8640ba

Browse files
committed
ext/openssl: add cast to work around -Wassign-enum
1 parent f64fefd commit b8640ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/openssl/xp_ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2323,7 +2323,7 @@ static inline int php_openssl_tcp_sockop_accept(php_stream *stream, php_openssl_
23232323

23242324
if (xparam->outputs.client && sock->enable_on_connect) {
23252325
/* remove the client bit */
2326-
sock->method &= ~STREAM_CRYPTO_IS_CLIENT;
2326+
sock->method = (php_stream_xport_crypt_method_t)(sock->method & ~STREAM_CRYPTO_IS_CLIENT);
23272327

23282328
clisockdata->method = sock->method;
23292329

0 commit comments

Comments
 (0)