mirror of
https://github.com/gosticks/SwiftGit2.git
synced 2025-10-16 11:55:34 +00:00
Use fromCString
This commit is contained in:
parent
876cd3edc1
commit
86fcebd10c
@ -23,7 +23,7 @@ private func checkoutProgressCallback(path: UnsafePointer<Int8>, completed_steps
|
|||||||
block = buffer.move()
|
block = buffer.move()
|
||||||
buffer.dealloc(1)
|
buffer.dealloc(1)
|
||||||
}
|
}
|
||||||
block((path == nil ? nil : String(path)), completed_steps, total_steps);
|
block(String.fromCString(path), completed_steps, total_steps);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user