Skip to content

Commit

Permalink
Version check corrected.
Browse files Browse the repository at this point in the history
  • Loading branch information
hannorein committed Jun 24, 2024
1 parent e2e8e18 commit 6dc4c90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulationarchive.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ void reb_read_simulationarchive_from_stream_with_messages(struct reb_simulationa
cmajor[c2-c1-1] = '\0';
version_minor = atoi(cminor);
version_major = atoi(cmajor);
if (version_major <= 3 || version_minor < 18){
if (version_major <= 3 && version_minor < 18){
uses32bitoffsets = 0; // fallback to 16 bit
}
}
Expand Down

0 comments on commit 6dc4c90

Please sign in to comment.