summaryrefslogtreecommitdiff
path: root/init-macros.fnl
diff options
context:
space:
mode:
authorAndrey Listopadov <a.listopadov@rt-solar.ru>2023-05-08 13:15:07 +0300
committerAndrey Listopadov <a.listopadov@rt-solar.ru>2023-05-08 13:15:07 +0300
commit1fd989fd49de7cd4993d00b58437f1c44b7784e9 (patch)
treeea91dd6af15e24cc3250ca645573c09b4793c73b /init-macros.fnl
parente7951b59b9168fc57d83b6a0aaaf1c31d56cfa7f (diff)
fix gensym usage
Diffstat (limited to 'init-macros.fnl')
-rw-r--r--init-macros.fnl2
1 files changed, 1 insertions, 1 deletions
diff --git a/init-macros.fnl b/init-macros.fnl
index 0489f48..3c54fec 100644
--- a/init-macros.fnl
+++ b/init-macros.fnl
@@ -847,7 +847,7 @@ macro checks for lists in bindings."}
(each [i v (ipairs binding-vec)]
(when (= 0 (% i 2))
(let [key (. binding-vec (- i 1))
- gs (gensym i)]
+ gs (gensym (tostring i))]
(assert-compile (not (list? key)) "loop macro doesn't support multiple-value destructuring" key)
;; [sym1# sym2# etc...], for the function application below
(table.insert gensyms gs)