From 06e9e0d0df237e3d505d908ccf264091b440e066 Mon Sep 17 00:00:00 2001 From: Tim Segers Date: Fri, 14 Oct 2022 17:46:07 +0200 Subject: Add requirement that GF Low not be greater than GF High --- src/deco.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/deco.c') diff --git a/src/deco.c b/src/deco.c index 80853b8..29f07ea 100644 --- a/src/deco.c +++ b/src/deco.c @@ -293,6 +293,8 @@ void init_tissues(decostate_t *ds) void init_decostate(decostate_t *ds, const unsigned char gflo, const unsigned char gfhi, const double ceil_multiple) { + assert(gflo <= gfhi); + init_tissues(ds); ds->gflo = gflo; -- cgit v1.2.3-70-g09d2