We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57afaa3 commit dd85c06Copy full SHA for dd85c06
core/native/src/Instant.kt
@@ -131,7 +131,7 @@ private const val MAX_SECOND = 31494816403199L // +1000000-12-31T23:59:59
131
private fun isValidInstantSecond(second: Long) = second >= MIN_SECOND && second <= MAX_SECOND
132
133
134
-@OptIn(ExperimentalForeignApi::class)
+@OptIn(ExperimentalForeignApi::class, UnsafeNumber::class)
135
internal fun currentTime(): Instant = memScoped {
136
val tm = alloc<timespec>()
137
val error = clock_gettime(CLOCK_REALTIME.convert(), tm.ptr)
0 commit comments