aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2015-06-29 17:09:13 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2015-06-29 17:10:03 +0200
commit00c9043e011a4a2399e3b75d45dbe5932671bfb1 (patch)
tree16d5f11c7d030a923a2741ec5306b01c71c7c815 /src
parent95ebb1c7d7969fa642192ce8e6c9efa8249979d9 (diff)
downloadsciteco-00c9043e011a4a2399e3b75d45dbe5932671bfb1.tar.gz
make sure that we do not loose information when handling tecoBools by implicit casts
Diffstat (limited to 'src')
-rw-r--r--src/sciteco.h4
1 files changed, 2 insertions, 2 deletions
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)