Skip to content

Conversation

djblue
Copy link
Contributor

@djblue djblue commented Sep 21, 2025

This test was failing for me in jank and I think this test value is incorrect.

% clj
Clojure 1.12.2
user=> Long/MIN_VALUE
-9223372036854775808
user=> -0x8000000000000000
-9223372036854775808

@djblue djblue changed the title Fix bad abs test Fix bad default min value Sep 21, 2025
@djblue djblue changed the title Fix bad default min value Fix bad :default min value Sep 21, 2025
: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()").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants