Fix cinterop numerical benchmark

This commit is contained in:
Elena Lepilkina
2020-11-02 11:07:15 +03:00
committed by Stanislav Erokhin
parent d44ceb6997
commit 41f704a458
@@ -22,6 +22,8 @@ fun konanBellardPi() {
}
fun clangBellardPi() {
for (n in 1 .. 1000 step 9)
cinterop.pi_nth_digit(n)
for (n in 1 .. 1000 step 9) {
val result = cinterop.pi_nth_digit(n)
Blackhole.consume(result)
}
}