Skip to content

Commit 4691739

Browse files
MaxKellermanniluuu1994
authored andcommitted
ext/openssl: add cast to work around -Wassign-enum
1 parent b0782bf commit 4691739

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
@@ -2326,7 +2326,7 @@ static inline int php_openssl_tcp_sockop_accept(php_stream *stream, php_openssl_
23262326

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

23312331
clisockdata->method = sock->method;
23322332

0 commit comments

Comments
 (0)