Skip to content

Commit

Permalink
Fix fatalError warning
Browse files Browse the repository at this point in the history
  • Loading branch information
CodaFi committed May 8, 2015
1 parent 438ac0c commit c51b90a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Basis/Error.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

/// Immediately terminates the program with an error message.
public func error<A>(x : String) -> A {
return fatalError(x) as! A
fatalError(x)
}

/// A special case of error.
Expand Down
2 changes: 1 addition & 1 deletion Basis/IO.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public func getChar() -> IO<Character> {
public func getLine() -> IO<String> {
return do_ { () -> String in
var str : UnsafeMutablePointer<Int8> = nil
var numBytes : UInt = 0;
var numBytes : Int = 0;
if getline(&str, &numBytes, stdin) == -1 {
return ""
}
Expand Down

0 comments on commit c51b90a

Please sign in to comment.