commit ee44fcaeb1e02efb5b4f9705d56a220f73cc2fcb
parent ac3a2834ec23e6a92285221e51b32fc48bf26afe
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 4 Feb 2026 16:12:13 +0100
Correction to the parsing of a mixture file
The number of molecules analyzed was incorrectly defined due to an issue
related to how a molecule is considered valid or invalid. As a result, a
dummy molecule was recorded when it should not have been.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sln_mixture.c b/src/sln_mixture.c
@@ -36,7 +36,7 @@ static const struct molecule MOLECULE_NULL = {
SLN_MOLECULE_NULL, 0, SHTR_MOLECULE_ID_NULL
};
-#define MOLECULE_IS_VALID(Molecule) ((Molecule)->id >= SHTR_MOLECULE_ID_NULL)
+#define MOLECULE_IS_VALID(Molecule) ((Molecule)->id > SHTR_MOLECULE_ID_NULL)
struct sln_mixture {
struct molecule molecules[SHTR_MAX_MOLECULE_COUNT];