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) }