Skip to content

Commit a8cdb7d

Browse files
committed
Fix 32-bit build
1 parent 721742c commit a8cdb7d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

ext/opcache/jit/zend_jit.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,14 @@ typedef struct zend_jit_ffi_info {
5656
uint32_t info;
5757
} zend_jit_ffi_info;
5858

59-
static bool zend_jit_ffi_supported_type(zend_ffi_type *type) {
60-
#if defined(IR_TARGET_X86)
61-
if (ZEND_FFI_TYPE(type->kind == ZEND_FFI_TYPE_UINT64)
62-
|| ZEND_FFI_TYPE(type->kind == ZEND_FFI_TYPE_SINT64)) {
63-
return false;
59+
static bool zend_jit_ffi_supported_type(zend_ffi_type *type)
60+
{
61+
if (sizeof(void*) == 4) {
62+
if (ZEND_FFI_TYPE(type)->kind == ZEND_FFI_TYPE_UINT64
63+
|| ZEND_FFI_TYPE(type)->kind == ZEND_FFI_TYPE_SINT64) {
64+
return false;
65+
}
6466
}
65-
#endif
6667
return true;
6768
}
6869

0 commit comments

Comments
 (0)