Skip to content

Commit

Permalink
[GEOMETRY] Fixes needed for UBSAN
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Jun 14, 2020
1 parent df8e771 commit fec26f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Geometry/EcalAlgo/test/EcalPreshowerParameterDump.cc
Expand Up @@ -42,9 +42,9 @@ EcalPreshowerCellParameterDump::EcalPreshowerCellParameterDump(const edm::Parame

if (debug_) {
edm::Service<TFileService> fs;
for (int iz = 0; iz < 2; ++iz) {
int zside = 2 * iz - 1;
for (int lay = 1; lay <= 2; ++lay) {
for (short iz = 0; iz < 2; ++iz) {
short zside = 2 * iz - 1;
for (short lay = 1; lay <= 2; ++lay) {
char name[20], title[40];
sprintf(name, "hist%d%d", iz, lay);
sprintf(title, "y vs. x (zside = %d,layer = %d)", zside, lay);
Expand Down

0 comments on commit fec26f2

Please sign in to comment.