From 465792fcca9689d301fdad7a2a0ecd66df205b94 Mon Sep 17 00:00:00 2001 From: Vale Date: Thu, 23 Jul 2020 20:49:54 +0900 Subject: [PATCH 1/2] Type hint as long --- src/potemkin/collections.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/potemkin/collections.clj b/src/potemkin/collections.clj index ae2c031..bf3feee 100644 --- a/src/potemkin/collections.clj +++ b/src/potemkin/collections.clj @@ -116,7 +116,7 @@ (potemkin.collections/compile-if (resolve 'clojure.core/hash-unordered-coll) (hash-unordered-coll (or (seq this) ())) (reduce - (fn [acc [k v]] + (fn [^long acc [k v]] (unchecked-add acc (bit-xor (hash k) (hash v)))) 0 (seq this)))) @@ -124,7 +124,7 @@ Object (hashCode [this] (reduce - (fn [acc [k v]] + (fn [^long acc [k v]] (unchecked-add acc (bit-xor (clojure.lang.Util/hash k) (clojure.lang.Util/hash v)))) 0 From 9d6885e0cc32e30baa2bb510f89c0ad3bd9ca66b Mon Sep 17 00:00:00 2001 From: Vale Date: Thu, 23 Jul 2020 20:56:51 +0900 Subject: [PATCH 2/2] Use trusty for building cf https://travis-ci.community/t/install-of-oracle-jdk-8-failing/3038/8 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 6cd6912..5fc6d50 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: clojure +dist: trusty script: lein do clean, test sudo: false jdk: