Skip to content

Commit 74622db

Browse files
committed
ATRONIX: Fix parameter to Remove_Series
The "n" to Remove_Series should be the number of elements to be removed from the series, not the size of the element in bytes, as the width of the series is sizeof(REBSER *) (See Init_Memory in m-gc.c) It should only remove the series in question. (cherry picked from commit 36450e7)
1 parent ba8bb20 commit 74622db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/m-gc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ static void Mark_Series(REBSER *series, REBCNT depth);
654654
sp = (REBSER **)GC_Series->data;
655655
for (n = 0; n < SERIES_TAIL(GC_Series); n++) {
656656
if (sp[n] == series) {
657-
Remove_Series(GC_Series, n, sizeof(REBSER *));
657+
Remove_Series(GC_Series, n, 1);
658658
break;
659659
}
660660
}

0 commit comments

Comments
 (0)