We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7db3a51 commit d91b166Copy full SHA for d91b166
Zend/zend_hash.c
@@ -102,14 +102,14 @@ static zend_always_inline uint32_t zend_hash_check_size(uint32_t nSize)
102
103
#if defined(ZEND_WIN32)
104
if (BitScanReverse(&index, nSize - 1)) {
105
- return 0x2 << ((31 - index) ^ 0x1f);
+ return 0x2u << ((31 - index) ^ 0x1f);
106
} else {
107
/* nSize is ensured to be in the valid range, fall back to it
108
rather than using an undefined bis scan result. */
109
return nSize;
110
}
111
#elif (defined(__GNUC__) || __has_builtin(__builtin_clz)) && defined(PHP_HAVE_BUILTIN_CLZ)
112
- return 0x2 << (__builtin_clz(nSize - 1) ^ 0x1f);
+ return 0x2u << (__builtin_clz(nSize - 1) ^ 0x1f);
113
#else
114
nSize -= 1;
115
nSize |= (nSize >> 1);
0 commit comments