Skip to content

Commit f33b8ad

Browse files
committed
Fix a warning
1 parent 0eed4cc commit f33b8ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/StringGuts.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ extension _StringGuts {
249249
// This branch looks unreachable, but can be reached via `withCString`
250250
// in binaries that haven't been recompiled since the termination flag
251251
// was added to _StringObject. Retry the fast path if so.
252-
return try withCString(body)
252+
return try unsafe withCString(body)
253253
}
254254
return try String(self).utf8CString.withUnsafeBufferPointer {
255255
let ptr = unsafe $0.baseAddress._unsafelyUnwrappedUnchecked

0 commit comments

Comments
 (0)