|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-09-30 14:13 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2018-09-30 14:13 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 03:00:02 2025 UTC |
Description: ------------ The table: static const php_hash_uint64 rc[R + 1] = { ... L64(0xbd5d10f4cb3e0567), ... uses unsigned data of 64-bit size, but it isn't declared as such. When the high bit is set, as above, this causes warnings (or errors, if -Wall is present). Reproduce code: --------------- The fix is trivial. In the sequence: #elif SIZEOF_LONG_LONG == 8 #define L64(x) x##LL typedef unsigned long long php_hash_uint64; for example, in ext/hash/php_hash_types.h, the macro should be written as: #define L64(x) x##ULL instead.