Skip to content

Commit dd85c06

Browse files
committed
Add the opt-in annotations required for compiling metadata
`gradle clean check` is apparently not enough to detect all compilation problems, one must also do `gradle publishToMavenLocal` to be sure.
1 parent 57afaa3 commit dd85c06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/native/src/Instant.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private const val MAX_SECOND = 31494816403199L // +1000000-12-31T23:59:59
131131
private fun isValidInstantSecond(second: Long) = second >= MIN_SECOND && second <= MAX_SECOND
132132

133133

134-
@OptIn(ExperimentalForeignApi::class)
134+
@OptIn(ExperimentalForeignApi::class, UnsafeNumber::class)
135135
internal fun currentTime(): Instant = memScoped {
136136
val tm = alloc<timespec>()
137137
val error = clock_gettime(CLOCK_REALTIME.convert(), tm.ptr)

0 commit comments

Comments
 (0)