mirror of
https://github.com/TomHarte/CLK.git
synced 2024-07-02 20:30:00 +00:00
Resolves deprecated use of scanHexInt32
.
This commit is contained in:
parent
65ca931e83
commit
9b73331ee9
|
@ -10,14 +10,14 @@ import XCTest
|
|||
import Foundation
|
||||
|
||||
fileprivate func readHexInt16(from scanner: Scanner) -> UInt16 {
|
||||
var temporary: UInt32 = 0
|
||||
scanner.scanHexInt32(&temporary)
|
||||
var temporary: UInt64 = 0
|
||||
scanner.scanHexInt64(&temporary)
|
||||
return UInt16(temporary)
|
||||
}
|
||||
|
||||
fileprivate func readHexInt8(from scanner: Scanner) -> UInt8 {
|
||||
var temporary: UInt32 = 0
|
||||
scanner.scanHexInt32(&temporary)
|
||||
var temporary: UInt64 = 0
|
||||
scanner.scanHexInt64(&temporary)
|
||||
return UInt8(temporary)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user