Commit 40b8e721 authored by Lynn Garren's avatar Lynn Garren
Browse files

Revert "avoid comparing signed and unsigned integers"

Instead, we require gcc 4.8.1 or later.

This reverts commit 8af9c18f.
parent 14281fa4
......@@ -184,8 +184,8 @@ rng_state_t* rng_copy(myuint *Y)
void seed_vielbein(rng_state_t* X, unsigned int index)
{
int i;
if ((int)index<N){
int i;
if (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( (int)counter <= N ) {
if( counter <= N ) {
X->counter= counter;
}else{
fprintf(stderr, "mixmax -> read_state: Invalid counter = %d"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment