typing dictionary might not always be right

This commit is contained in:
Erik 2015-09-07 13:26:58 -04:00
parent 5fdea20455
commit c8c67d66a8

View File

@ -289,9 +289,9 @@ private extension SocketPacket {
}
return arr
} else if var dict = data as? [String: AnyObject] {
} else if let dict = data as? NSMutableDictionary {
for (key, value) in dict {
dict[key] = shred(value, binary: &binary)
dict[key as! NSCopying] = shred(value, binary: &binary)
}
return dict