Skip to content

Commit ab36622

Browse files
julian-smith-artifex-comJorjMcKie
authored andcommitted
src/extra.i: fix debug build error caused by assert statement.
1 parent c58e39a commit ab36622

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extra.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4113,7 +4113,7 @@ PyObject* ll_JM_color_count(fz_pixmap *pm, PyObject *clip)
41134113
unsigned char* s = pm->samples + stride * (irect.y0 - pm->y) + n * (irect.x0 - pm->x);
41144114
// Cache previous pixel.
41154115
char oldpix[10];
4116-
assert(n < = size(oldpix));
4116+
assert(n <= sizeof(oldpix));
41174117
memcpy(oldpix, s, n);
41184118
long cnt = 0;
41194119
for (size_t i = 0; i < height; i++)

0 commit comments

Comments
 (0)