Skip to content

Commit 8f6c03a

Browse files
committed
Fix compilation on 32-bit platforms
1 parent b9b7d82 commit 8f6c03a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/native/src/Builders.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private class BlockingCoroutine<T>(
6666
val parkNanos = eventLoop?.processNextEvent() ?: Long.MAX_VALUE
6767
// note: process next even may loose unpark flag, so check if completed before parking
6868
if (isCompleted) break
69-
timespec.tv_sec = parkNanos / 1000000000L // 1e9 ns -> sec
69+
timespec.tv_sec = (parkNanos / 1000000000L).convert() // 1e9 ns -> sec
7070
timespec.tv_nsec = (parkNanos % 1000000000L).convert() // % 1e9
7171
nanosleep(timespec.ptr, null)
7272
}

0 commit comments

Comments
 (0)