Open amanbind007 opened 1 month ago
I Recently updated my Xcode to version 16. Now I'm getting this error in my project.
In Sources/OfficeFileReader/MS-DOC/TBDelta.swift on line 74
Sources/OfficeFileReader/MS-DOC/TBDelta.swift
74
let cidNext: Int32 = try dataStream.read(endianess: .littleEndian) if self.dopr == .insert && fAtEnd && cidNext != 0xFFFFFFFF { <------- Here throw OfficeFileError.corrupted } else if self.dopr == .insert && !fAtEnd && cidNext != 0x00001EF9 { throw OfficeFileError.corrupted }
Getting this error: Integer literal '4294967295' overflows when stored into 'Int32'
Integer literal '4294967295' overflows when stored into 'Int32'
Maybe we should use UInt32 instead of Int32?
Yeah, that would fix it.
I Recently updated my Xcode to version 16. Now I'm getting this error in my project.
In
Sources/OfficeFileReader/MS-DOC/TBDelta.swift
on line74
Getting this error:
Integer literal '4294967295' overflows when stored into 'Int32'