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 836cda6 commit 18a385fCopy full SHA for 18a385f
ext/standard/pack.c
@@ -76,10 +76,7 @@ ZEND_ATTRIBUTE_CONST static inline uint16_t php_pack_reverse_int16(uint16_t arg)
76
/* {{{ php_pack_reverse_int32 */
77
ZEND_ATTRIBUTE_CONST static inline uint32_t php_pack_reverse_int32(uint32_t arg)
78
{
79
- uint32_t result;
80
- result = ((arg & 0xFF) << 24) | ((arg & 0xFF00) << 8) | ((arg >> 8) & 0xFF00) | ((arg >> 24) & 0xFF);
81
-
82
- return result;
+ return ZEND_BYTES_SWAP32(arg);
83
}
84
/* }}} */
85
0 commit comments