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
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user