Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boxed math warning at unchecked-add #60

Open
valerauko opened this issue Jul 23, 2020 · 0 comments
Open

Boxed math warning at unchecked-add #60

valerauko opened this issue Jul 23, 2020 · 0 comments

Comments

@valerauko
Copy link

The calls to unchecked-add in collections cause boxed math warnings when *unchecked-math* is enabled.

https://github.com/ztellman/potemkin/blob/e8c64802b8772a90110434d1b515ce35b78b961b/src/potemkin/collections.clj#L120

https://github.com/ztellman/potemkin/blob/e8c64802b8772a90110434d1b515ce35b78b961b/src/potemkin/collections.clj#L128

Type hinting acc as long resolves the warning.

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 a pull request may close this issue.

1 participant