diff --git a/okio/src/nativeMain/kotlin/okio/SizetVariant.kt b/okio/src/nativeMain/kotlin/okio/SizetVariant.kt index 8fac35d916..46f5bca40c 100644 --- a/okio/src/nativeMain/kotlin/okio/SizetVariant.kt +++ b/okio/src/nativeMain/kotlin/okio/SizetVariant.kt @@ -29,11 +29,11 @@ internal fun variantFread( target: CPointer>, byteCount: UInt, file: CPointer, -): UInt = fread(target, 1, byteCount.convert(), file).convert() +): UInt = fread(target, 1u, byteCount.convert(), file).convert() @OptIn(UnsafeNumber::class) internal fun variantFwrite( source: CPointer, byteCount: UInt, file: CPointer, -): UInt = fwrite(source, 1, byteCount.convert(), file).convert() +): UInt = fwrite(source, 1u, byteCount.convert(), file).convert()