Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix compile time hash code computation for symbols

  • Loading branch information...
commit 90e52a8a4f93c760dce7331a0bb2c17473543829 1 parent c8d4491
David Nolen authored April 30, 2013

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  src/clj/cljs/compiler.clj
4  src/clj/cljs/compiler.clj
@@ -181,7 +181,9 @@
181 181
     (emits ",")
182 182
     (emit-constant symstr)
183 183
     (emits ",")
184  
-    (emit-constant (goog-string-hash symstr))
  184
+    (emit-constant (clojure.lang.Util/hashCombine
  185
+                     (unchecked-int (goog-string-hash ns))
  186
+                     (unchecked-int (goog-string-hash name))))
185 187
     (emits ",")
186 188
     (emit-constant nil)
187 189
     (emits ")")))

0 notes on commit 90e52a8

Please sign in to comment.
Something went wrong with that request. Please try again.