1
0
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:
Thomas Harte 2020-12-06 20:49:12 -05:00
parent 65ca931e83
commit 9b73331ee9

View File

@ -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)
}