eic / EICrecon

EIC Reconstruction - JANA based
https://eic.github.io/EICrecon
GNU Lesser General Public License v3.0
5 stars 24 forks source link

Fix type errors flagged by ASAN #1476

Open simonge opened 1 month ago

simonge commented 1 month ago

There are a few instances flagged up in runtime of values being changed when converted between unsigned/signed or types which aren't large enough when built and run with the debugging environment on github.

At best this just clutters up the trace so it's harder to identify the actual issues, at worst it is effecting the output and isn't being directly flagged by the compiler.

Environment: (where does this bug occur, have you tried other environments)

The CI environment and build on github.

Steps to reproduce: (give a step by step account of how to trigger the bug)

  1. Run a workflow on github or compiled with the correct settings.

Expected Result: (what do you expect when you execute the steps above)

No type errors are flagged up

Actual Result: (what do you get when you execute the steps above)

Several conversions between types which change the value of the variable are flagged up including: