Skip to content

Commit 0731208

Browse files
committed
Warning fix
1 parent bf05f11 commit 0731208

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Source/Aliases.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@ public typealias UTF16Char = Char // UInt16
3232
public typealias UTF32Char = UInt32
3333
#if !COCOA && !ISLAND
3434
public typealias AnsiChar = Byte
35-
public typealias UTF8Char = Byte
36-
#else
3735
// Cocoa and Island already have AnsiChar
38-
public typealias UTF8Char = AnsiChar
3936
#endif
37+
public typealias UTF8Char = Byte
4038

4139
public typealias StaticString = NativeString
4240

Source/Array.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ public struct Array<T>
336336

337337
public subscript (range: Range) -> [T] {
338338
#if COCOA
339-
return [T](list.Skip(range.lowerBound).Take(range.length).array())
339+
return [T](list.Skip(range.lowerBound).Take(range.length).ToNSArray())
340340
#else
341341
return [T](list.Skip(range.lowerBound).Take(range.length).ToList())
342342
#endif

0 commit comments

Comments
 (0)