File tree 2 files changed +2
-2
lines changed 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ private const val MAX_SECOND = 31494816403199L // +1000000-12-31T23:59:59
131
131
private fun isValidInstantSecond (second : Long ) = second >= MIN_SECOND && second <= MAX_SECOND
132
132
133
133
134
- @OptIn(ExperimentalForeignApi ::class )
134
+ @OptIn(ExperimentalForeignApi ::class , UnsafeNumber :: class )
135
135
internal fun currentTime (): Instant = memScoped {
136
136
val tm = alloc< timespec> ()
137
137
val error = clock_gettime(CLOCK_REALTIME .convert(), tm.ptr)
Original file line number Diff line number Diff line change 3
3
* Use of this source code is governed by the Apache 2.0 License that can be found in the LICENSE.txt file.
4
4
*/
5
5
6
- @file:OptIn(ExperimentalForeignApi ::class )
6
+ @file:OptIn(ExperimentalForeignApi ::class , UnsafeNumber :: class )
7
7
package kotlinx.datetime.internal
8
8
9
9
import kotlinx.cinterop.*
You can’t perform that action at this time.
0 commit comments