From 06bf0a19307f642678c6f6e52d5aad2c1c29fc75 Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Thu, 24 Oct 2024 20:09:55 +0100 Subject: [PATCH] Return 0xdead instead of -1 on error --- lib/evaluator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/evaluator.c b/lib/evaluator.c index 53bb7dd..28eed36 100644 --- a/lib/evaluator.c +++ b/lib/evaluator.c @@ -16,6 +16,6 @@ int evaluate(const expression_t *expression) case OPERATOR_DIVIDE: return x / y; default: - return -1; + return 0xdead; } }