fix uint64 cast to size_t

This commit is contained in:
Green Sky 2024-10-23 14:11:26 +02:00
parent 5e884fd3ee
commit 4aab6e489d
No known key found for this signature in database

View File

@ -78,7 +78,7 @@ bool NGCEXTEventProvider::parse_ft1_init(
e.file_size = 0u;
_DATA_HAVE(sizeof(e.file_size), std::cerr << "NGCEXT: packet too small, missing file_size\n"; return false)
for (size_t i = 0; i < sizeof(e.file_size); i++, curser++) {
e.file_size |= size_t(data[curser]) << (i*8);
e.file_size |= uint64_t(data[curser]) << (i*8);
}
// - 1 byte (temporary_file_tf_id)