fix paren placing in fmt
Some checks failed
Sex CI / build-linux (pull_request) Has been cancelled
Sex CI / build-macos (pull_request) Has been cancelled
Sex CI / build-linux (push) Has been cancelled
Sex CI / build-macos (push) Has been cancelled

Prior to the fix, the Sex code
`(while (!= EOF (= c (getc f))) ...)` expanded wrongly to
`while (EOF != c = getc(f)) { ...`, instead of
`while (EOF != (c = getc(f))) { ...`
This commit was merged in pull request #24.
This commit is contained in:
2026-04-29 21:49:32 +03:00
parent 24b3e71969
commit b157315e3d

View File

@@ -112,7 +112,7 @@
(lambda (st) (lambda (st)
((fmt-let 'op op ((fmt-let 'op op
(if (and (c-op<= (fmt-op st) op) (if (and (c-op<= (fmt-op st) op)
(not (vector? st))) (not (vector? x)))
(c-paren x) (c-paren x)
x)) x))
st))) st)))