From 4aab6e489d7203a93c2ae0e269c2ed73da859915 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Wed, 23 Oct 2024 14:11:26 +0200 Subject: [PATCH] fix uint64 cast to size_t --- solanaceae/ngc_ext/ngcext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solanaceae/ngc_ext/ngcext.cpp b/solanaceae/ngc_ext/ngcext.cpp index cbe0aa2..34e3850 100644 --- a/solanaceae/ngc_ext/ngcext.cpp +++ b/solanaceae/ngc_ext/ngcext.cpp @@ -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)