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

Fix compiler warnings in 'bench' module #562

Merged
merged 6 commits into from
Nov 14, 2022

Conversation

satorg
Copy link
Contributor

@satorg satorg commented Nov 14, 2022

For #486

@@ -116,7 +114,7 @@ class TreeListBench {
val rand = new java.util.Random(42)
@tailrec
def loop(cnt: Int, acc: Int): Int = {
val v = treeList.getUnsafe((rand.nextInt() & Int.MaxValue) % n) + acc
val v = treeList.getUnsafe((rand.nextInt() & Int.MaxValue).toLong % n) + acc
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixes "implicit numeric widening"

@gemelen gemelen merged commit e286420 into typelevel:master Nov 14, 2022
@satorg satorg deleted the fix-warnings-in-bench branch November 14, 2022 08:04
This was referenced Dec 13, 2022
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.

3 participants