1
0
forked from alex-eg/sex

fix paren placing in fmt

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 is contained in:
2026-04-29 21:49:32 +03:00
parent 24b3e71969
commit b157315e3d

View File

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