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 a26bed6 commit 5614724Copy full SHA for 5614724
src/PhpPalettedBlockArray.cpp
@@ -72,7 +72,7 @@ static bool paletted_block_array_from_data(zval *return_value, zend_long bitsPer
72
gsl::span<uint8_t> wordArray((uint8_t*)ZSTR_VAL(wordArrayZstr), (uint8_t*)(ZSTR_VAL(wordArrayZstr) + ZSTR_LEN(wordArrayZstr)));
73
std::vector<Block> palette;
74
75
- assert(paletteHt != nullptr && paletteZstr != nullptr);
+ assert(paletteHt != nullptr || paletteZstr != nullptr);
76
77
if (paletteHt != nullptr && !palette_data_from_array(paletteHt, palette)) {
78
return false;
0 commit comments