fix unsafeBitCast error

This commit is contained in:
Erik 2015-09-03 15:20:15 -04:00
parent a147ebcd85
commit d81cbd7d24

View File

@ -48,7 +48,7 @@ extension SocketLogger {
return return
} }
let newArgs = args.map {String($0)} let newArgs = args.map {arg -> CVarArgType in String(arg)}
let replaced = String(format: message, arguments: newArgs) let replaced = String(format: message, arguments: newArgs)
NSLog("%@: %@", altType ?? client.logType, replaced) NSLog("%@: %@", altType ?? client.logType, replaced)
@ -59,7 +59,7 @@ extension SocketLogger {
return return
} }
let newArgs = args.map {String($0)} let newArgs = args.map {arg -> CVarArgType in String(arg)}
let replaced = String(format: message, arguments: newArgs) let replaced = String(format: message, arguments: newArgs)
NSLog("ERROR %@: %@", altType ?? client.logType, replaced) NSLog("ERROR %@: %@", altType ?? client.logType, replaced)