Skip to content

Cast explicitely enum to size_t to prevent compilation error in debug mode.

Andrei Gheata requested to merge fix_logger into master

I hit the compilation error while compiling the master in debug mode:

/home/agheata/geant_src/VecGeom/source/LoggerTypes.cpp:23:14: error: no match for ‘operator*’ (operand types are ‘vecgeom::LogLevel’ and ‘long unsigned int’)
   23 |   assert(lev * sizeof(const char *) < sizeof(data));
      |          ~~~ ^ ~~~~~~~~~~~~~~~~~~~~
      |          |     |
      |          |     long unsigned int
      |          vecgeom::LogLevel

Merge request reports