diff --git a/Source/Aliases.swift b/Source/Aliases.swift index 1f8be1f..6b7418e 100644 --- a/Source/Aliases.swift +++ b/Source/Aliases.swift @@ -32,11 +32,9 @@ public typealias UTF16Char = Char // UInt16 public typealias UTF32Char = UInt32 #if !COCOA && !ISLAND public typealias AnsiChar = Byte -public typealias UTF8Char = Byte -#else // Cocoa and Island already have AnsiChar -public typealias UTF8Char = AnsiChar #endif +public typealias UTF8Char = Byte public typealias StaticString = NativeString diff --git a/Source/Array.swift b/Source/Array.swift index 96940e8..791d424 100755 --- a/Source/Array.swift +++ b/Source/Array.swift @@ -336,7 +336,7 @@ public struct Array public subscript (range: Range) -> [T] { #if COCOA - return [T](list.Skip(range.lowerBound).Take(range.length).array()) + return [T](list.Skip(range.lowerBound).Take(range.length).ToNSArray()) #else return [T](list.Skip(range.lowerBound).Take(range.length).ToList()) #endif