[sixel] logpanic on internal error

pull/2599/head
nick black 2 years ago committed by nick black
parent 51f16ecc57
commit 254b0bcf36

@ -238,7 +238,7 @@ free_qstate(qstate *qs){
}
// insert a color from the source image into the octree.
static int
static inline int
insert_color(qstate* qs, uint32_t pixel){
const unsigned r = ncpixel_r(pixel);
const unsigned g = ncpixel_g(pixel);
@ -321,7 +321,7 @@ insert_color(qstate* qs, uint32_t pixel){
// resolve the input color to a color table index following any postprocessing
// of the octree.
static int
static inline int
find_color(const qstate* qs, uint32_t pixel){
const unsigned r = ncpixel_r(pixel);
const unsigned g = ncpixel_g(pixel);
@ -333,7 +333,7 @@ find_color(const qstate* qs, uint32_t pixel){
if(qs->onodes[q->qlink - 1].q[skey]){
q = qs->onodes[q->qlink - 1].q[skey];
}else{
logerror("internal error: no color for 0x%016x", pixel);
logpanic("internal error: no color for 0x%016x", pixel);
return -1;
}
}

Loading…
Cancel
Save