Skip to content

Commit

Permalink
Replace toInt() with convert()
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Aug 6, 2023
1 parent bb8bf3b commit 1f7f641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateway/src/nativeMain/kotlin/Inflater.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ internal actual class Inflater : Closeable {
if (resultCode != Z_OK && resultCode != Z_STREAM_END) {
throw IllegalStateException("An error occurred during decompression of frame: $resultCode")
}
out += uncompressedData.readBytes(uncompressedDataSize - zStream.avail_out.toInt())
out += uncompressedData.readBytes(uncompressedDataSize - zStream.avail_out.convert<Int>())
} while (zStream.avail_out == 0u)
}

Expand Down

0 comments on commit 1f7f641

Please sign in to comment.