From 6e9b7f10d4bc9452b06c19546a0f4948cbd19cd4 Mon Sep 17 00:00:00 2001 From: Scott Vokes Date: Sun, 13 Oct 2024 09:31:33 -0400 Subject: [PATCH] Fix strange comparison on a bool. While technically equivalent, this looks confusnig. I'm not sure if it was a typo (thinking of `eager_output_buf.used > 0`) or some kind of search/replace artifact. --- src/libfsm/print/cdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libfsm/print/cdata.c b/src/libfsm/print/cdata.c index 0e2fd53b7..b8ec31234 100644 --- a/src/libfsm/print/cdata.c +++ b/src/libfsm/print/cdata.c @@ -242,7 +242,7 @@ generate_struct_definition(FILE *f, const struct cdata_config *config, bool comm id_type_str(config->t_endid_value), config->endid_buf.used); } - if (has_eager_outputs > 0) { + if (has_eager_outputs) { if (comments) { fprintf(f, "\n"