Skip to content

Commit

Permalink
Merge pull request #826 from ScorexFoundation/i825-robovm
Browse files Browse the repository at this point in the history
Fix RoboVM incompatibility
  • Loading branch information
aslesarenko authored Aug 24, 2022
2 parents 727b7b7 + f604672 commit b513c0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ env:
jobs:
build:
name: Test and publish a snapshot
env:
HAS_SECRETS: ${{ secrets.SONATYPE_PASSWORD != '' }}
strategy:
matrix:
os: [ubuntu-latest]
Expand Down
6 changes: 5 additions & 1 deletion library-impl/src/main/scala/special/collection/Helpers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ object Helpers {
var nValues = 0
while (i < arr.length) {
val (key, value) = m(arr(i))
val pos = keyPositions.getOrDefault(key, 0)
val pos = {
val p: Integer = keyPositions.get(key)
if (p == null) 0 else p.intValue()
}

if (pos == 0) {
keyPositions.put(key, nValues + 1)
keys += key
Expand Down

0 comments on commit b513c0e

Please sign in to comment.