Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Commit 9c5f826

Browse files
committed
more symbol hash tweaks
1 parent 33b7810 commit 9c5f826

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jvm/clojure/lang/Symbol.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class Symbol extends AFn implements IObj, Comparable, Named, Serializable
2020
//these must be interned strings!
2121
final String ns;
2222
final String name;
23-
private int _hasheq = -1;
23+
private int _hasheq;
2424
final IPersistentMap _meta;
2525
String _str;
2626

@@ -87,7 +87,7 @@ public int hashCode(){
8787
}
8888

8989
public int hasheq() {
90-
if(_hasheq == -1){
90+
if(_hasheq == 0){
9191
_hasheq = Util.hashCombine(Murmur3.hashUnencodedChars(name), Util.hash(ns));
9292
}
9393
return _hasheq;

0 commit comments

Comments
 (0)