Skip to content

Commit 5614724

Browse files
committed
Fix assert condition
1 parent a26bed6 commit 5614724

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpPalettedBlockArray.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static bool paletted_block_array_from_data(zval *return_value, zend_long bitsPer
7272
gsl::span<uint8_t> wordArray((uint8_t*)ZSTR_VAL(wordArrayZstr), (uint8_t*)(ZSTR_VAL(wordArrayZstr) + ZSTR_LEN(wordArrayZstr)));
7373
std::vector<Block> palette;
7474

75-
assert(paletteHt != nullptr && paletteZstr != nullptr);
75+
assert(paletteHt != nullptr || paletteZstr != nullptr);
7676

7777
if (paletteHt != nullptr && !palette_data_from_array(paletteHt, palette)) {
7878
return false;

0 commit comments

Comments
 (0)