From 6dc4c90f14dfbd35704e84aaa23a66fe0e2f34be Mon Sep 17 00:00:00 2001 From: Hanno Rein Date: Mon, 24 Jun 2024 11:00:27 -0400 Subject: [PATCH] Version check corrected. --- src/simulationarchive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulationarchive.c b/src/simulationarchive.c index b245c9240..64c6e8022 100644 --- a/src/simulationarchive.c +++ b/src/simulationarchive.c @@ -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 } }