Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
atlas
athena
Merge requests
!39455
BPhysTools: Fix clang warning.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
BPhysTools: Fix clang warning.
ssnyder/athena:clang.BPhysTools-20210104
into
master
Overview
3
Commits
1
Pipelines
1
Changes
1
Merged
Scott Snyder
requested to merge
ssnyder/athena:clang.BPhysTools-20210104
into
master
4 years ago
Overview
3
Commits
1
Pipelines
1
Changes
1
Expand
Max uint64_t cannot be represented exactly as a double.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
47ff8532
1 commit,
4 years ago
1 file
+
6
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
PhysicsAnalysis/BPhys/BPhysTools/Root/SimpleEncrypter.cxx
+
6
−
2
Options
/*
Copyright (C) 2002-201
8
CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-20
2
1 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
=
Loading