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 6dee7ae commit fafcaa3Copy full SHA for fafcaa3
ext/standard/pack.c
@@ -99,10 +99,7 @@ ZEND_ATTRIBUTE_CONST static inline uint16_t php_pack_reverse_int16(uint16_t arg)
99
/* {{{ php_pack_reverse_int32 */
100
ZEND_ATTRIBUTE_CONST static inline uint32_t php_pack_reverse_int32(uint32_t arg)
101
{
102
- uint32_t result;
103
- result = ((arg & 0xFF) << 24) | ((arg & 0xFF00) << 8) | ((arg >> 8) & 0xFF00) | ((arg >> 24) & 0xFF);
104
-
105
- return result;
+ return ZEND_BYTES_SWAP32(arg);
106
}
107
/* }}} */
108
0 commit comments