ID: 49952 Comment by: onzi at ustrem dot org Reported By: onzi at ustrem dot org Status: Feedback Bug Type: hash related Operating System: AIX 6.1 PHP Version: 5.2.11 New Comment:
Here are the errors: ext/hash/php_hash_tiger.h", line 28.9: 1506-159 (E) Bit field type specified for passes is not valid. Type unsigned assumed. ext/hash/php_hash_tiger.h", line 29.9: 1506-159 (E) Bit field type specified for length is not valid. Type unsigned assumed. Regards! Previous Comments: ------------------------------------------------------------------------ [2009-10-22 10:19:51] j...@php.net What errors? ------------------------------------------------------------------------ [2009-10-22 07:59:27] onzi at ustrem dot org Description: ------------ When I use -O2, -O3 or -O5 flags there are two errors. Problem file is ext/hash/php_hash_tiger.h. Reproduce code: --------------- typedef struct { php_hash_uint64 state[3]; php_hash_uint64 passed; unsigned char passes:1; unsigned char length:7; unsigned char buffer[64]; } PHP_TIGER_CTX; Expected result: ---------------- I've changed to this and now there are no errors typedef struct { php_hash_uint64 state[3]; php_hash_uint64 passed; unsigned int passes:1; unsigned int length:7; unsigned char buffer[64]; } PHP_TIGER_CTX; Actual result: -------------- Is that correct or I will have problem other modules? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49952&edit=1