Skip to content

Commit 7eee7c0

Browse files
committed
Fix build
1 parent b9066ab commit 7eee7c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Zend/zend_alloc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ typedef zend_mm_bitset zend_mm_page_map[ZEND_MM_PAGE_MAP_LEN]; /* 64B */
228228
# if __has_builtin(__builtin_bswap64)
229229
# define BSWAPPTR(u) __builtin_bswap64(u)
230230
# else
231-
zend_always_inline uintptr_t BSWAPPTR(uintptr_t u)
231+
static zend_always_inline uintptr_t BSWAPPTR(uintptr_t u)
232232
{
233233
return (((u & 0xff00000000000000ULL) >> 56)
234234
| ((u & 0x00ff000000000000ULL) >> 40)
@@ -244,7 +244,7 @@ zend_always_inline uintptr_t BSWAPPTR(uintptr_t u)
244244
# if __has_builtin(__builtin_bswap32)
245245
# define BSWAPPTR(u) __builtin_bswap32(u)
246246
# else
247-
zend_always_inline uintptr_t BSWAPPTR(uintptr_t u)
247+
static zend_always_inline uintptr_t BSWAPPTR(uintptr_t u)
248248
{
249249
return (((u & 0xff000000) >> 24)
250250
| ((u & 0x00ff0000) >> 8)
@@ -1340,7 +1340,7 @@ static zend_always_inline zend_mm_free_slot* zend_mm_encode_free_slot(const zend
13401340
static zend_always_inline zend_mm_free_slot* zend_mm_decode_free_slot(zend_mm_heap *heap, zend_mm_free_slot *slot)
13411341
{
13421342
#ifdef WORDS_BIGENDIAN
1343-
return (zend_mm_free_slot*)((uintptr_t)slot ^ heap->shadow_key));
1343+
return (zend_mm_free_slot*)((uintptr_t)slot ^ heap->shadow_key);
13441344
#else
13451345
return (zend_mm_free_slot*)(BSWAPPTR((uintptr_t)slot ^ heap->shadow_key));
13461346
#endif

0 commit comments

Comments
 (0)