Skip to content

Commit dbd7fba

Browse files
committed
typo
1 parent 9848f24 commit dbd7fba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/ffi/ffi.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -5302,7 +5302,7 @@ void zend_ffi_add_bit_field(zend_ffi_dcl *struct_dcl, const char *name, size_t n
53025302
zend_ffi_parser_error("wrong type of bit field '%.*s' at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
53035303
}
53045304

5305-
if (bits->kind == ZEND_FFI_VAL_INT32 || ZEND_FFI_VAL_INT64) {
5305+
if (bits->kind == ZEND_FFI_VAL_INT32 || bits->kind == ZEND_FFI_VAL_INT64) {
53065306
if (bits->i64 < 0) {
53075307
zend_ffi_cleanup_dcl(field_dcl);
53085308
zend_ffi_parser_error("negative width in bit-field '%.*s' at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
@@ -5316,7 +5316,7 @@ void zend_ffi_add_bit_field(zend_ffi_dcl *struct_dcl, const char *name, size_t n
53165316
zend_ffi_cleanup_dcl(field_dcl);
53175317
zend_ffi_parser_error("width of '%.*s' exceeds its type at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
53185318
}
5319-
} else if (ZEND_FFI_VAL_UINT32 || ZEND_FFI_VAL_UINT64) {
5319+
} else if (bits->kind == ZEND_FFI_VAL_UINT32 || bits->kind == ZEND_FFI_VAL_UINT64) {
53205320
if (bits->u64 == 0) {
53215321
zend_ffi_cleanup_dcl(field_dcl);
53225322
if (name) {

0 commit comments

Comments
 (0)