Skip to content

Commit 9c60347

Browse files
committed
Restoring compilation on 32-bit systems once more...
1 parent 8f0192f commit 9c60347

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/nix/src/internal/filesystem.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ internal fun Path.readBytes(): ByteArray {
9393
if (err == -1) throw RuntimeException("Cannot jump to the start of $this: $errnoString")
9494
val buffer = ByteArray(size.toInt())
9595
val readAmount = fread(buffer.refTo(0), size.convert<size_t>(), 1u, handler)
96-
check(readAmount == 1uL) { "Cannot read file $this: $errnoString" }
96+
check(readAmount.convert<ULong>() == 1uL) { "Cannot read file $this: $errnoString" }
9797
return buffer
9898
} finally {
9999
fclose(handler)

0 commit comments

Comments
 (0)