From fb32f766501e089953e8cb0353e60af7bc8fc042 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 1 Oct 2025 12:54:48 -0400 Subject: Fix conditional --- src/naming.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/naming.c b/src/naming.c index e3ae7550..484e1998 100644 --- a/src/naming.c +++ b/src/naming.c @@ -112,6 +112,6 @@ Text_t get_id_suffix(const char *filename) { } Path_t id_file = Path$child(build_dir, Texts(Path$base_name(path), Text$from_str(".id"))); OptionalText_t id = Path$read(id_file); - if (id.tag != TEXT_NONE) err(1, "Could not read ID file: %s", Path$as_c_string(id_file)); + if (id.tag == TEXT_NONE) err(1, "Could not read ID file: %s", Path$as_c_string(id_file)); return Texts("$", id); } -- cgit v1.2.3