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 0efbbbd commit 3b1918bCopy full SHA for 3b1918b
ext/standard/pack.c
@@ -96,10 +96,7 @@ ZEND_ATTRIBUTE_CONST static inline uint16_t php_pack_reverse_int16(uint16_t arg)
96
/* {{{ php_pack_reverse_int32 */
97
ZEND_ATTRIBUTE_CONST static inline uint32_t php_pack_reverse_int32(uint32_t arg)
98
{
99
- uint32_t result;
100
- result = ((arg & 0xFF) << 24) | ((arg & 0xFF00) << 8) | ((arg >> 8) & 0xFF00) | ((arg >> 24) & 0xFF);
101
-
102
- return result;
+ return ZEND_BYTES_SWAP32(arg);
103
}
104
/* }}} */
105
0 commit comments