com php-src: typo: ext/ffi/ffi.c
| From: | Dmitry Stogov | Date: | Tue, 12 Feb 2019 10:24:14 +0000 |
| Subject: | com php-src: typo: ext/ffi/ffi.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-104588@lists.php.net to get a copy of this message | ||
Commit: dbd7fbabe9f0d97b87afec3657ce53b4e5e25b3f
Author: Dmitry Stogov <dmitry@zend.com> Tue, 12 Feb 2019 13:24:14 +0300
Parents: 9848f24a6a496f0aeb63e24ffa91bd9bc34a9933
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=dbd7fbabe9f0d97b87afec3657ce53b4e5e25b3f
Log:
typo
Changed paths:
M ext/ffi/ffi.c
Diff:
diff --git a/ext/ffi/ffi.c b/ext/ffi/ffi.c
index e223a52..2da7fd4 100644
--- a/ext/ffi/ffi.c
+++ b/ext/ffi/ffi.c
@@ -5302,7 +5302,7 @@ void zend_ffi_add_bit_field(zend_ffi_dcl *struct_dcl, const char *name, size_t
n
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));
}
- if (bits->kind == ZEND_FFI_VAL_INT32 || ZEND_FFI_VAL_INT64) {
+ if (bits->kind == ZEND_FFI_VAL_INT32 || bits->kind == ZEND_FFI_VAL_INT64) {
if (bits->i64 < 0) {
zend_ffi_cleanup_dcl(field_dcl);
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
zend_ffi_cleanup_dcl(field_dcl);
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));
}
- } else if (ZEND_FFI_VAL_UINT32 || ZEND_FFI_VAL_UINT64) {
+ } else if (bits->kind == ZEND_FFI_VAL_UINT32 || bits->kind == ZEND_FFI_VAL_UINT64) {
if (bits->u64 == 0) {
zend_ffi_cleanup_dcl(field_dcl);
if (name) {