From c4e01f0b90a396522ca4c9dd69899e7703afce85 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Mon, 26 Jan 2026 18:34:06 +0800 Subject: [PATCH] progress --- lib/system/gc.nim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/system/gc.nim b/lib/system/gc.nim index d69ba55bf6..645c14117c 100644 --- a/lib/system/gc.nim +++ b/lib/system/gc.nim @@ -454,11 +454,9 @@ template setFrameInfo(c: PCell) = proc getRequiredAlign(typ: PNimType): int {.inline.} = # Determine the required alignment for a type. - # Priority: typ.base.align -> typ.align -> MemAlign - if typ.base != nil and typ.base.align > 0: + if typ.kind notin {tyString, tySequence} and + typ.base != nil and typ.base.align > 0: typ.base.align - elif typ.align > 0: - typ.align else: MemAlign