Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CLHEP
CLHEP
Commits
d4eb2400
Commit
d4eb2400
authored
Mar 14, 2018
by
Lynn Garren
Browse files
bug fix from Gabriele
parent
e1a9415b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Random/ChangeLog
View file @
d4eb2400
2018-03-14 Gabriele Cosmo <Gabriele.Cosmo@cern.ch>
* src/Ranlux64Engine.cc: bug fix
==============================
15.02.18 Release CLHEP-2.4.0.2
==============================
...
...
Random/src/Ranlux64Engine.cc
View file @
d4eb2400
...
...
@@ -423,10 +423,10 @@ void Ranlux64Engine::setSeed(long seed, int lux) {
}
// are we on a 64bit machine?
if
(
sizeof
(
long
)
>=
8
)
{
long
topbits1
,
topbits2
;
int64_t
topbits1
,
topbits2
;
#ifdef USING_VISUAL
topbits1
=
(
seed
>>
32
)
&
0xffff
;
topbits2
=
(
seed
>>
48
)
&
0xffff
;
topbits1
=
(
(
int64_t
)
seed
>>
32
)
&
0xffff
;
topbits2
=
(
(
int64_t
)
seed
>>
48
)
&
0xffff
;
#else
topbits1
=
detail
::
rshift
<
32
>
(
seed
)
&
0xffff
;
topbits2
=
detail
::
rshift
<
48
>
(
seed
)
&
0xffff
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment