Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/clojure/core_test/number_range.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
(def ^:const min-int #?(:clj Long/MIN_VALUE
:cljr Int64/MinValue
:cljs js/Number.MIN_SAFE_INTEGER
:default 0x8000000000000000))
:default -0x8000000000000000))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On which host was this failing? bb? Every other host we support is covered above.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw the issue initially in jank, but it also failed for clj when I switched it to use :default as well.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should remove this constant. It's all sorts of weird. We should just add a :jank branch which does (cpp/value "std::numeric_limits<jtl::i64>::min()").


(def ^:const all-ones-int #?(:cljs 0xFFFFFFFF
:default -1))
Expand Down