From 3e720bef8fb8e2549919b2d60b512dc9a2c73c19 Mon Sep 17 00:00:00 2001 From: Andre Sailer Date: Wed, 16 Oct 2024 18:09:20 +0200 Subject: [PATCH] conditions: use static unsigned long long int because ROOTs latest llvm otherwise causes assertion in debug mode about not being able to represent in 64 bit. Not sure if bug in enum parsing??? --- DDCore/include/DD4hep/Conditions.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/DDCore/include/DD4hep/Conditions.h b/DDCore/include/DD4hep/Conditions.h index 16880169c..af3256374 100644 --- a/DDCore/include/DD4hep/Conditions.h +++ b/DDCore/include/DD4hep/Conditions.h @@ -101,10 +101,7 @@ namespace dd4hep { LAST_DET_KEY = ~0x0U }; /// Flags to indicate global conditions ranges - enum { - FIRST_KEY = 0x0ULL, - LAST_KEY = ~0x0ULL - }; + static constexpr unsigned long long int FIRST_KEY = 0x0ULL, LAST_KEY = ~0x0ULL; /// Abstract base for processing callbacks to conditions objects /**