fix uint64 cast to size_t
This commit is contained in:
parent
5e884fd3ee
commit
4aab6e489d
@ -78,7 +78,7 @@ bool NGCEXTEventProvider::parse_ft1_init(
|
|||||||
e.file_size = 0u;
|
e.file_size = 0u;
|
||||||
_DATA_HAVE(sizeof(e.file_size), std::cerr << "NGCEXT: packet too small, missing file_size\n"; return false)
|
_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++) {
|
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)
|
// - 1 byte (temporary_file_tf_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user