From 2337828095920b8debdb0f8e0337a9d6aad6b55c Mon Sep 17 00:00:00 2001 From: Tim Segers Date: Mon, 10 Oct 2022 18:08:23 +0200 Subject: Add minunit.h with some trivial tests --- deco.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deco.c') diff --git a/deco.c b/deco.c index 42d3776..5ef6537 100644 --- a/deco.c +++ b/deco.c @@ -98,7 +98,7 @@ gas_t gas_new(const unsigned char o2, const unsigned char he, double mod) int gas_equal(const gas_t *g1, const gas_t *g2) { - return g1->o2 == g2->o2 && g1->he == g2->he; + return g1->o2 == g2->o2 && g1->he == g2->he && g1->mod == g2->mod; } unsigned char gas_o2(const gas_t *gas) -- cgit v1.2.3-70-g09d2