Skip to content

TrigT1NSWSimTools: Fix ubsan warning.

We were calculating event_number*100, then converting to a double. However, sometimes the event number is large enough that this overflows a signed 32-bit int, which was giving a ubsan warning. Since we eventually convert to a double anyway, change to doing the multiplication as double as well.

Merge request reports