From a04a031fc892bcdc23cf957c610851926b6af44a Mon Sep 17 00:00:00 2001
From: Andrea Shepard <andrea@special-circumstanc.es>
Date: Mon, 9 Dec 2019 15:09:10 +0000
Subject: [PATCH] Fix pointer signedness bug in examples/ttuser.c

---
 examples/ttuser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/ttuser.c b/examples/ttuser.c
index 4e83356c..c16e4625 100644
--- a/examples/ttuser.c
+++ b/examples/ttuser.c
@@ -75,7 +75,7 @@ HParser *
 build_parser(void)
 {
 	/* words */
-	#define W(X)	h_whitespace(h_literal(#X))
+	#define W(X)	h_whitespace(h_literal((const uint8_t *)(#X)))
 	H_RULE(art,	h_choice(W(a), W(the), NULL));
 	H_RULE(noun,	h_choice(W(cat), W(dog), W(fox), W(tiger), W(lion),
 			    W(bear), W(fence), W(tree), W(car), W(cow), NULL));
-- 
GitLab