Skip to content

Commit c1aa478

Browse files
committed
Fix memset after GC
1 parent 80ad513 commit c1aa478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rts/motoko-rts/src/gc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ pub unsafe extern "C" fn rust_collect_garbage() {
484484

485485
// Reset scratch space
486486
memset(
487-
begin_to_space,
487+
new_hp,
488488
bytes_to_words(Bytes((end_to_space - new_hp) as u32)),
489489
0,
490490
);

0 commit comments

Comments
 (0)