From be22eb0c7ff46e41b8567f51e17cc13f762b32ec Mon Sep 17 00:00:00 2001
From: "Sven M. Hallberg" <pesco@khjk.org>
Date: Mon, 3 Feb 2020 19:27:02 +0100
Subject: [PATCH] avoid warning from IN() and NOT_IN() when char is signed

/ht andrea
---
 pdf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pdf.c b/pdf.c
index 69bc056..0520696 100644
--- a/pdf.c
+++ b/pdf.c
@@ -13,8 +13,8 @@
 #define REP(P,N)	h_repeat_n(P, N)
 #define IGN(P)		h_ignore(P)
 #define LIT(S)		h_ignore(h_literal(S))
-#define IN(STR)		h_in(STR, sizeof(STR) - 1)
-#define NOT_IN(STR)	h_not_in(STR, sizeof STR - 1)
+#define IN(STR)		h_in((const uint8_t *)(STR), sizeof(STR) - 1)
+#define NOT_IN(STR)	h_not_in((const uint8_t *)(STR), sizeof STR - 1)
 
 
 /*
-- 
GitLab