Skip to content

Commit f6715f7

Browse files
committed
Merge branch 'warnings' of https://github.com/compnerd/swift-corelibs-foundation into compnerd-warnings
2 parents ecb7212 + 779eafd commit f6715f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TestFoundation/TestNSString.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ class TestNSString : XCTestCase {
395395
let testString = "hello world"
396396
let string = NSString(string: testString)
397397
let cfString = unsafeBitCast(string, to: CFString.self)
398-
398+
399399
// Get the bytes as UTF16
400400
let reservedLength = 50
401401
var buf : [UInt8] = []
@@ -404,7 +404,7 @@ class TestNSString : XCTestCase {
404404
let _ = buf.withUnsafeMutableBufferPointer { p in
405405
CFStringGetBytes(cfString, CFRangeMake(0, CFStringGetLength(cfString)), CFStringEncoding(kCFStringEncodingUTF16), 0, false, p.baseAddress, reservedLength, &usedLen)
406406
}
407-
407+
408408
// Make a new string out of it
409409
let newCFString = CFStringCreateWithBytes(nil, buf, usedLen, CFStringEncoding(kCFStringEncodingUTF16), false)
410410
let newString = unsafeBitCast(newCFString, to: NSString.self)

0 commit comments

Comments
 (0)