refactor(gen): R12 收尾同步——12 处计数 while 循环改 for range

与 includes 同步:<= 条件转 range(expr + 1),并放宽初始化行的紧贴要求(同块内最近一次写即为初始化即可)。其余保守守卫不变。

验证:bootstrap 三重重编 SUCCESS;全量 77/77 顺序回归通过。
This commit is contained in:
TermiNexus committed 2026-10-05 16:36:36 +08:00
1 parent fb53f88893
commit aeb4e8e54c
7 files changed
+12 -36

No files matched your search

+1 -3
View File
@@ -305,11 +305,9 @@ def _normalize_path(path: str) -> str:
if has_seg > 0:
out[out_len] = '/'
out_len += 1
jj: sizet = 0
while jj < seg_len:
for jj in range(seg_len):
out[out_len] = path[seg_start + jj]
out_len += 1
jj += 1
has_seg = 1
seg_start = i + 1
if has_seg == 0: