From 1f7f6411076df30211bfe9e34823591d26cde822 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Sun, 6 Aug 2023 17:09:31 +0200 Subject: [PATCH] Replace toInt() with convert() --- gateway/src/nativeMain/kotlin/Inflater.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/src/nativeMain/kotlin/Inflater.kt b/gateway/src/nativeMain/kotlin/Inflater.kt index 4fbca05c13c..63bfa922edc 100644 --- a/gateway/src/nativeMain/kotlin/Inflater.kt +++ b/gateway/src/nativeMain/kotlin/Inflater.kt @@ -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()) } while (zStream.avail_out == 0u) }