Skip to content

Commit 284c399

Browse files
#430: Fix compilation
1 parent a6b13fe commit 284c399

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/tzdbOnFilesystem/src/internal/filesystem.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ internal fun compareFiles(file1: String, file2: String): Boolean = memScoped {
6262
val buffer2 = allocArray<ByteVar>(bufferSize)
6363

6464
while (true) {
65-
val read1 = fread(buffer1, 1u, bufferSize.toULong(), f1).toInt()
66-
val read2 = fread(buffer2, 1u, bufferSize.toULong(), f2).toInt()
65+
val read1 = fread(buffer1, 1u, bufferSize.toUInt(), f1).toInt()
66+
val read2 = fread(buffer2, 1u, bufferSize.toUInt(), f2).toInt()
6767

6868
if (read1 != read2) return false
6969
if (read1 == 0) break // EOF

0 commit comments

Comments
 (0)