diff options
author | Sascha Schumann <sas@php.net> | 2003-08-17 13:49:52 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2003-08-17 13:49:52 +0000 |
commit | 602d1b004558ac02774d4d50cd0fa5358e144d1d (patch) | |
tree | cfbe639019ac59bb36b048e7bcb3add4e613e570 | |
parent | c7d9be97caab327b0ca41c0f0d4856236736e691 (diff) | |
download | php-git-602d1b004558ac02774d4d50cd0fa5358e144d1d.tar.gz |
One bit fields need to be unsigned, otherwise there is no storage for
the sign bit
"A signed bit field has a length of 1 bit."
-rw-r--r-- | Zend/zend.h | 4 | ||||
-rw-r--r-- | main/streams/php_stream_transport.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Zend/zend.h b/Zend/zend.h index 15da085bb1..c2b291d0bc 100644 --- a/Zend/zend.h +++ b/Zend/zend.h @@ -228,8 +228,8 @@ typedef struct _zend_class_entry zend_class_entry; typedef struct _zend_object { zend_class_entry *ce; HashTable *properties; - int in_get:1; - int in_set:1; + unsigned int in_get:1; + unsigned int in_set:1; } zend_object; typedef unsigned int zend_object_handle; diff --git a/main/streams/php_stream_transport.h b/main/streams/php_stream_transport.h index 7c0f320a9c..19da443a39 100644 --- a/main/streams/php_stream_transport.h +++ b/main/streams/php_stream_transport.h @@ -98,9 +98,9 @@ typedef struct _php_stream_xport_param { STREAM_XPORT_OP_GET_NAME, STREAM_XPORT_OP_GET_PEER_NAME } op; - int want_addr:1; - int want_textaddr:1; - int want_errortext:1; + unsigned int want_addr:1; + unsigned int want_textaddr:1; + unsigned int want_errortext:1; struct { char *name; |