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