Skip to content

Commit 0c65b67

Browse files
committed
ext/opcache/jit: add casts to work around -Wassign-enum
1 parent 1362917 commit 0c65b67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/jit/zend_jit_trace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7634,7 +7634,7 @@ int ZEND_FASTCALL zend_jit_trace_hot_root(zend_execute_data *execute_data, const
76347634
if (stop & ZEND_JIT_TRACE_HALT) {
76357635
ret = -1;
76367636
}
7637-
stop &= ~ZEND_JIT_TRACE_HALT;
7637+
stop = (zend_jit_trace_stop)(stop & ~ZEND_JIT_TRACE_HALT);
76387638

76397639
if (UNEXPECTED(trace_buffer[1].opline != orig_opline)) {
76407640
orig_opline = trace_buffer[1].opline;
@@ -7972,7 +7972,7 @@ int ZEND_FASTCALL zend_jit_trace_hot_side(zend_execute_data *execute_data, uint3
79727972
if (stop & ZEND_JIT_TRACE_HALT) {
79737973
ret = -1;
79747974
}
7975-
stop &= ~ZEND_JIT_TRACE_HALT;
7975+
stop = (zend_jit_trace_stop)(stop & ~ZEND_JIT_TRACE_HALT);
79767976

79777977
if (UNEXPECTED(trace_buffer->start != ZEND_JIT_TRACE_START_SIDE)) {
79787978
if (JIT_G(debug) & ZEND_JIT_DEBUG_TRACE_START) {

0 commit comments

Comments
 (0)