Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CLHEP
CLHEP
Commits
8af9c18f
Commit
8af9c18f
authored
Nov 02, 2015
by
Lynn Garren
Browse files
avoid comparing signed and unsigned integers
parent
fcf5fb45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Random/src/mixmax.cc
View file @
8af9c18f
...
...
@@ -184,8 +184,8 @@ rng_state_t* rng_copy(myuint *Y)
void
seed_vielbein
(
rng_state_t
*
X
,
unsigned
int
index
)
{
int
i
;
if
(
index
<
N
){
int
i
;
if
(
(
int
)
index
<
N
){
for
(
i
=
0
;
i
<
N
;
i
++
){
X
->
V
[
i
]
=
0
;
}
...
...
@@ -315,7 +315,7 @@ void read_state(rng_state_t* X, const char filename[] ){
unsigned
int
counter
;
if
(
!
fscanf
(
fin
,
"}; counter=%u; "
,
&
counter
)){
fprintf
(
stderr
,
"mixmax -> read_state: error reading counter from file %s
\n
"
,
filename
);
exit
(
ERROR_READING_STATE_FILE
);}
if
(
counter
<=
N
)
{
if
(
(
int
)
counter
<=
N
)
{
X
->
counter
=
counter
;
}
else
{
fprintf
(
stderr
,
"mixmax -> read_state: Invalid counter = %d"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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