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 3e0de46 commit 5321ee8Copy full SHA for 5321ee8
Zend/zend_alloc.c
@@ -1330,7 +1330,7 @@ static zend_always_inline int zend_mm_small_size_to_bin(size_t size)
1330
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
{
1333
-#if WORDS_BIGENDIAN
+#ifdef WORDS_BIGENDIAN
1334
return (zend_mm_free_slot*)(((uintptr_t)slot) ^ heap->shadow_key);
1335
#else
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
1340
static zend_always_inline zend_mm_free_slot* zend_mm_decode_free_slot(zend_mm_heap *heap, zend_mm_free_slot *slot)
1341
1342
1343
return (zend_mm_free_slot*)((uintptr_t)slot ^ heap->shadow_key));
1344
1345
return (zend_mm_free_slot*)(BSWAPPTR((uintptr_t)slot ^ heap->shadow_key));
ext/random/random.c
@@ -746,7 +746,7 @@ PHPAPI zend_result php_general_random_bytes_for_zend(zend_utility_general_random
746
size_t chunk_size = MIN(size, sizeof(result.size));
747
memcpy(bytes, &result.result, chunk_size);
748
size -= chunk_size;
749
- bytes += chunk_size;
+ bytes = (char*)bytes+ chunk_size;
750
}
751
752
return SUCCESS;
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments