We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 53b6acf + e909a3c commit ca4f797Copy full SHA for ca4f797
benchmark/single-source/Calculator.swift
@@ -39,7 +39,7 @@ func my_atoi_impl(_ input : String) -> Int {
39
public func run_Calculator(_ N: Int) {
40
var c = 0
41
for _ in 1...N*5000 {
42
- c += my_atoi_impl("10")
+ c += my_atoi_impl(identity("10"))
43
}
44
CheckResults(c == 0)
45
benchmark/single-source/OpenClose.swift
@@ -34,7 +34,7 @@ func check_state(_ state : MyState) -> Int {
34
public func run_OpenClose(_ N: Int) {
35
36
for _ in 1...N*10000 {
37
- c += check_state(MyState.Closed)
+ c += check_state(identity(MyState.Closed))
38
0 commit comments