Skip to content
Snippets Groups Projects
Commit ffdf32b0 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'clang.BPhysTools-20210104' into 'master'

BPhysTools: Fix clang warning.

See merge request atlas/athena!39455
parents 40aba1a3 47ff8532
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/
// system include:
......@@ -21,8 +21,12 @@ namespace xAOD {
//--------------------------------------------------------------------------
// Private static constants
//--------------------------------------------------------------------------
// This gives 0x10000 on a 64-bit platform.
// ??? Would probably be better to write these using bit operations,
// rather than FP, to avoid potential rounding issues.
// (eg. the maximum uint64_t cannot be represented exactly as a double)
const SimpleEncrypter::ULLI_t SimpleEncrypter::m_MAXRANGE =
(SimpleEncrypter::ULLI_t)pow(std::numeric_limits<ULLI_t>::max(), 0.25);
(SimpleEncrypter::ULLI_t)pow(static_cast<double>(std::numeric_limits<ULLI_t>::max()), 0.25);
const SimpleEncrypter::ULLI_t SimpleEncrypter::m_MINRANGE =
(SimpleEncrypter::ULLI_t)SimpleEncrypter::m_MAXRANGE/10;
const unsigned int SimpleEncrypter::m_MAXHEXDIGITS =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment