From 9c5ee0b617117766c43e251ef04315c0d505a289 Mon Sep 17 00:00:00 2001 From: Eric Bagus Date: Thu, 8 Feb 2024 22:36:55 +0100 Subject: [PATCH] Correction of valid operation check --- src/inputHandler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inputHandler.c b/src/inputHandler.c index 5c9dba9..ed559c8 100644 --- a/src/inputHandler.c +++ b/src/inputHandler.c @@ -47,7 +47,7 @@ char getOperationSymbolById(int id) { // Checking if operation id is available int isOperationIdValid(int id) { - if(id < 0 || id > 7) return 0; + if(id < 1 || id > 7) return 0; return 1; }