From 53d174aeb180cac674eb3d17979c0b9cc6ab5077 Mon Sep 17 00:00:00 2001 From: nekobit Date: Sat, 2 Jul 2022 21:17:44 +0000 Subject: [PATCH] Change boolean values to 2 and 1 FossilOrigin-Name: 00bb74a50177a804527de2780819943b0d9ad78c2fcd4ef0ed834824e65d5d45 --- include/mastodont_types.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/mastodont_types.h b/include/mastodont_types.h index 8632448..5a51716 100644 --- a/include/mastodont_types.h +++ b/include/mastodont_types.h @@ -23,9 +23,9 @@ #define MSTDNT_URLSIZE 2048 #define MSTDNT_URISIZE 512 typedef int8_t mstdnt_bool; -#define MSTDNT_TRUE 1 -#define MSTDNT_FALSE 0 -#define MSTDNT_BOOL_UNSET -1 +#define MSTDNT_TRUE 2 +#define MSTDNT_FALSE 1 +#define MSTDNT_BOOL_UNSET 0 // It's more logical to not sanitize than to sanitize data #define MSTDNT_FLAG_NO_URI_SANITIZE (1<<0)