Skip to content

Commit 00453d3

Browse files
committed
ATRONIX: FIX: Mold of an Image with length of multiple of 10
Without fix: >> mold make image! 5x2 == {make image! [5x2 #{ 000000000000000000000000000000000000000000000000000000000000^@ }]} Based on: zsx@e95a54c
1 parent 2bcdbc4 commit 00453d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/t-image.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ INLINE REBCNT ARGB_To_BGR(REBCNT i)
352352
// Output RGB image:
353353
size = VAL_IMAGE_LEN(value); // # pixels (from index to tail)
354354
data = (REBCNT *)VAL_IMAGE_DATA(value);
355-
up = Prep_Uni_Series(mold, (size * 6) + (size / 10) + 1);
355+
up = Prep_Uni_Series(mold, (size * 6) + ((size - 1) / 10) + 1);
356356

357357
for (len = 0; len < size; len++) {
358358
if ((len % 10) == 0) *up++ = LF;

0 commit comments

Comments
 (0)