Skip to content

Commit

Permalink
Fix strange comparison on a bool.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
silentbicycle committed Oct 13, 2024
1 parent 4fe0beb commit 6e9b7f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libfsm/print/cdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6e9b7f1

Please sign in to comment.