From 09fb48e75cedfb2aadf0390f5fe10484f4c364e4 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 11 Apr 2026 03:50:08 +0000 Subject: [PATCH] fix: change crossinline to noinline for nullable lambda parameter Kotlin does not allow crossinline parameters to be nullable. The cOp parameter in benchTriple needs to be nullable (null when C library is not available), so use noinline instead. https://claude.ai/code/session_011KVZhDcV2G7idNWEBz12GY --- .../quartz/utils/secp256k1/Secp256k1TripleBenchmark.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quartz/src/jvmTest/kotlin/com/vitorpamplona/quartz/utils/secp256k1/Secp256k1TripleBenchmark.kt b/quartz/src/jvmTest/kotlin/com/vitorpamplona/quartz/utils/secp256k1/Secp256k1TripleBenchmark.kt index ae5be1566..b02a59673 100644 --- a/quartz/src/jvmTest/kotlin/com/vitorpamplona/quartz/utils/secp256k1/Secp256k1TripleBenchmark.kt +++ b/quartz/src/jvmTest/kotlin/com/vitorpamplona/quartz/utils/secp256k1/Secp256k1TripleBenchmark.kt @@ -84,7 +84,7 @@ class Secp256k1TripleBenchmark { iterations: Int, crossinline acinqOp: () -> Unit, crossinline kotlinOp: () -> Unit, - crossinline cOp: (() -> Unit)? = null, + noinline cOp: (() -> Unit)? = null, ): TripleResult { repeat(warmup) { acinqOp() } val acinqStart = System.nanoTime()