Closed brendand closed 3 months ago
Looks like this should solve it:
class func decodeNumeric(_ string : String, base : Int32) -> Character? {
if let code = UInt32(string, radix: Int(base)) {
return Character(UnicodeScalar(code)!)
} else {
return nil
}
}
How did you find out it was from the strtoul()
call?
Trial and error commenting out code. Then some Googling which lead me to the above solution.
I'm trying to build my app with the latest Xcode 12.5 beta 3 and I'm getting a build error due to this code in
HTMLUtils.swift
I believe it's from the
stroul()
call.The error is:
Does anyone have a solution for this or know a workaround?