Skip to content

Commit

Permalink
Warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarfland committed Apr 19, 2019
1 parent bf05f11 commit 0731208
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Source/Aliases.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Source/Array.swift
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ public struct Array<T>

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
Expand Down

0 comments on commit 0731208

Please sign in to comment.