Replace magic number with variable
This commit is contained in:
parent
ac6d663703
commit
40e34fc990
|
@ -145,7 +145,7 @@ internal class BinaryReader {
|
|||
if length < 0 {
|
||||
throw CSVError.streamErrorHasOccurred(error: stream.streamError!)
|
||||
}
|
||||
if length != 4 {
|
||||
if length != bufferSize {
|
||||
throw CSVError.stringEncodingMismatch
|
||||
}
|
||||
return try UnsafePointer(buffer).withMemoryRebound(to: UInt32.self, capacity: 1) {
|
||||
|
|
Loading…
Reference in New Issue