From 00c9043e011a4a2399e3b75d45dbe5932671bfb1 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 29 Jun 2015 17:09:13 +0200 Subject: make sure that we do not loose information when handling tecoBools by implicit casts --- src/sciteco.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/sciteco.h b/src/sciteco.h index 0e3c8dd..56e5fdf 100644 --- a/src/sciteco.h +++ b/src/sciteco.h @@ -73,8 +73,8 @@ extern sig_atomic_t sigint_occurred; /** String containing the escape character */ #define CTL_KEY_ESC_STR "\x1B" -#define SUCCESS (-1) -#define FAILURE (0) +#define SUCCESS ((tecoBool)-1) +#define FAILURE ((tecoBool)0) #define TECO_BOOL(X) ((X) ? SUCCESS : FAILURE) #define IS_SUCCESS(X) ((X) < 0) -- cgit v1.2.3