This repository was archived by the owner on Feb 23, 2018. It is now read-only.
Commit 3218387
committed
Fix findItemByIndex in case of hash collisions
The method `findItemByIndex` only looked at the first item in each
bucket of the `items` hash table.
Also, in case the item was not found, the counter `i` would be at
`items.length`, therefore the access `items[i]` crashed with an
ArrayIndexOutOfBoundsException.
Fixes the issue scala/scala-asm#8.1 parent 6b478ad commit 3218387
1 file changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1747 | 1747 | | |
1748 | 1748 | | |
1749 | 1749 | | |
1750 | | - | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
1751 | 1755 | | |
1752 | 1756 | | |
1753 | | - | |
1754 | | - | |
1755 | | - | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
1756 | 1764 | | |
1757 | 1765 | | |
1758 | 1766 | | |
| |||
0 commit comments