Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue 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
Peter Sherwood
athena
Commits
47ff8532
Commit
47ff8532
authored
4 years ago
by
scott snyder
Browse files
Options
Downloads
Patches
Plain Diff
BPhysTools: Fix clang warning.
Max uint64_t cannot be represented exactly as a double.
parent
4cda231e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PhysicsAnalysis/BPhys/BPhysTools/Root/SimpleEncrypter.cxx
+6
-2
6 additions, 2 deletions
PhysicsAnalysis/BPhys/BPhysTools/Root/SimpleEncrypter.cxx
with
6 additions
and
2 deletions
PhysicsAnalysis/BPhys/BPhysTools/Root/SimpleEncrypter.cxx
+
6
−
2
View file @
47ff8532
/*
/*
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:
// system include:
...
@@ -21,8 +21,12 @@ namespace xAOD {
...
@@ -21,8 +21,12 @@ namespace xAOD {
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
// Private static constants
// 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
=
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
=
const
SimpleEncrypter
::
ULLI_t
SimpleEncrypter
::
m_MINRANGE
=
(
SimpleEncrypter
::
ULLI_t
)
SimpleEncrypter
::
m_MAXRANGE
/
10
;
(
SimpleEncrypter
::
ULLI_t
)
SimpleEncrypter
::
m_MAXRANGE
/
10
;
const
unsigned
int
SimpleEncrypter
::
m_MAXHEXDIGITS
=
const
unsigned
int
SimpleEncrypter
::
m_MAXHEXDIGITS
=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment