Skip to content

Commit 8f59715

Browse files
committed
Fix Windows format string "F"->"f"…
1 parent 6b17c0c commit 8f59715

File tree

1 file changed

+1
-1
lines changed
  • runtime/nativeMain/src/org/jetbrains/gradle/benchmarks

1 file changed

+1
-1
lines changed

runtime/nativeMain/src/org/jetbrains/gradle/benchmarks/Utils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ actual fun Double.format(precision: Int): String {
1212

1313
return memScoped {
1414
val bytes = allocArray<ByteVar>(100)
15-
sprintf(bytes, "%.${precision}F", fractional)
15+
sprintf(bytes, "%.${precision}f", fractional)
1616
val fractionText = bytes.toKString()
1717
thousands + fractionText.removePrefix("0")
1818
}

0 commit comments

Comments
 (0)