File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1330,7 +1330,7 @@ static zend_always_inline int zend_mm_small_size_to_bin(size_t size)
13301330
13311331static zend_always_inline zend_mm_free_slot * zend_mm_encode_free_slot (const zend_mm_heap * heap , const zend_mm_free_slot * slot )
13321332{
1333- #if WORDS_BIGENDIAN
1333+ #ifdef WORDS_BIGENDIAN
13341334 return (zend_mm_free_slot * )(((uintptr_t )slot ) ^ heap -> shadow_key );
13351335#else
13361336 return (zend_mm_free_slot * )(BSWAPPTR ((uintptr_t )slot ) ^ heap -> shadow_key );
@@ -1339,7 +1339,7 @@ static zend_always_inline zend_mm_free_slot* zend_mm_encode_free_slot(const zend
13391339
13401340static zend_always_inline zend_mm_free_slot * zend_mm_decode_free_slot (zend_mm_heap * heap , zend_mm_free_slot * slot )
13411341{
1342- #if WORDS_BIGENDIAN
1342+ #ifdef WORDS_BIGENDIAN
13431343 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 ));
Original file line number Diff line number Diff line change @@ -746,7 +746,7 @@ PHPAPI zend_result php_general_random_bytes_for_zend(zend_utility_general_random
746746 size_t chunk_size = MIN (size , sizeof (result .size ));
747747 memcpy (bytes , & result .result , chunk_size );
748748 size -= chunk_size ;
749- bytes += chunk_size ;
749+ bytes = ( char * ) bytes + chunk_size ;
750750 }
751751
752752 return SUCCESS ;
You can’t perform that action at this time.
0 commit comments