From 78fdf8ac2666ff013a60460085c64d32f9573d00 Mon Sep 17 00:00:00 2001 From: Nikita Prokopov Date: Wed, 24 Aug 2022 21:28:18 +0200 Subject: [PATCH] Fixed gensym in defcomp --- src/datascript/db.cljc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/datascript/db.cljc b/src/datascript/db.cljc index 6a5d5be3..a45631d3 100644 --- a/src/datascript/db.cljc +++ b/src/datascript/db.cljc @@ -420,15 +420,15 @@ (def ~sym (reify java.util.Comparator - (compare [~'_ ~a1 ~a2] + (compare [_# ~a1 ~a2] (let [~arg1 ~arg1 ~arg2 ~arg2] ~@body)) clojure.lang.IFn - (invoke [~'this ~a1 ~a2] - (.compare ~'this ~a1 ~a2)) + (invoke [this# ~a1 ~a2] + (.compare this# ~a1 ~a2)) IFn$OOL - (invokePrim [~'this ~a1 ~a2] - (.compare ~'this ~a1 ~a2)))))))) + (invokePrim [this# ~a1 ~a2] + (.compare this# ~a1 ~a2)))))))) (defcomp cmp-datoms-eavt ^long [^Datom d1, ^Datom d2] (combine-cmp