Skip to content
Snippets Groups Projects
Commit dc5aac37 authored by Will Buttinger's avatar Will Buttinger Committed by John Kenneth Anders
Browse files

Update gFexByteStreamTool.cxx - ensure MET2 has enough space to be stored...

Update gFexByteStreamTool.cxx - ensure MET2 has enough space to be stored (otherwise get FPE from wraparound)
parent 8187ed23
No related branches found
No related tags found
2 merge requests!692142024-02-24: merge of 24.0 into main,!69158Update gFexByteStreamTool.cxx - ensure MET2 has enough space to be stored...
......@@ -492,7 +492,7 @@ int16_t gFexByteStreamTool::fillGlobal(const std::vector<uint32_t> &tob, const i
container->back()->setSaturated(0);
container->back()->setGlobalType(type);
int16_t MET2 = sum_x * sum_x + sum_y * sum_y;
int MET2 = sum_x * sum_x + sum_y * sum_y;
int16_t MET = 0x0;
if (MET2 > 0x000FFF) MET = 0x000FFF;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment