From 2345dc762700d7641ec44e1b28688c074837ab38 Mon Sep 17 00:00:00 2001 From: feng-arch Date: Wed, 30 Oct 2024 17:44:50 +0800 Subject: [PATCH] fix some bug when there are bugs but build finish --- assembler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assembler.c b/assembler.c index 5e33d0f..9c5243c 100644 --- a/assembler.c +++ b/assembler.c @@ -41,7 +41,7 @@ int main(int argc, char **argv) { } program_bin[instr_count] = bin; instr_count++; - } else if (ret == 3) { + } else { printf("Error on line %d: %s\n", i + 1, line); return i + 1; }