commit 92cfb86bfa8f37a7f8c4c81fd7afe86b9f50db7b
parent d4ef211a5ab762b3d18ddbb60fe630c64c12210d
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 19 Mar 2026 14:58:28 +0100
sln-slab: minor update to probability checking
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sln_slab.c b/src/sln_slab.c
@@ -397,7 +397,7 @@ check_sampled_node(const struct cmd* cmd, const struct sln_node* node)
static INLINE res_T
check_proba(const struct cmd* cmd, const double proba)
{
- if(proba <= 1) return RES_OK;
+ if(0 <= proba && proba <= 1) return RES_OK;
if(cmd->args.verbose >= 1) {
fprintf(stderr, "error: invalid probability %g\n", proba);