File tree 2 files changed +3
-3
lines changed
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)
1330
1330
1331
1331
static zend_always_inline zend_mm_free_slot * zend_mm_encode_free_slot (const zend_mm_heap * heap , const zend_mm_free_slot * slot )
1332
1332
{
1333
- #if WORDS_BIGENDIAN
1333
+ #ifdef WORDS_BIGENDIAN
1334
1334
return (zend_mm_free_slot * )(((uintptr_t )slot ) ^ heap -> shadow_key );
1335
1335
#else
1336
1336
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
1339
1339
1340
1340
static zend_always_inline zend_mm_free_slot * zend_mm_decode_free_slot (zend_mm_heap * heap , zend_mm_free_slot * slot )
1341
1341
{
1342
- #if WORDS_BIGENDIAN
1342
+ #ifdef WORDS_BIGENDIAN
1343
1343
return (zend_mm_free_slot * )((uintptr_t )slot ^ heap -> shadow_key ));
1344
1344
#else
1345
1345
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
746
746
size_t chunk_size = MIN (size , sizeof (result .size ));
747
747
memcpy (bytes , & result .result , chunk_size );
748
748
size -= chunk_size ;
749
- bytes += chunk_size ;
749
+ bytes = ( char * ) bytes + chunk_size ;
750
750
}
751
751
752
752
return SUCCESS ;
You can’t perform that action at this time.
0 commit comments