From 44f442e3fb0a9ac309ab5b111f8c06f50c731457 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 20 Mar 2016 04:21:25 -0500 Subject: [PATCH] ircd: parse: now this type cast for POINTER MATH is just fucking stupid --- ircd/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircd/parse.c b/ircd/parse.c index 6e4189f9..92791bf3 100644 --- a/ircd/parse.c +++ b/ircd/parse.c @@ -186,7 +186,7 @@ parse(struct Client *client_p, char *pbuffer, char *bufend) /* Its expected this nasty code can be removed * or rewritten later if still needed. */ - if((unsigned long) (p + 8) > (unsigned long) end) + if((p + 8) > end) { for (; p <= end; p++) {