]> jfr.im git - solanum.git/commitdiff
ircd: parse: now this type cast for POINTER MATH is just fucking stupid
authorWilliam Pitcock <redacted>
Sun, 20 Mar 2016 09:21:25 +0000 (04:21 -0500)
committerWilliam Pitcock <redacted>
Sun, 20 Mar 2016 09:21:25 +0000 (04:21 -0500)
ircd/parse.c

index 6e4189f9b761615b2437fd5383d9f92fa7a7c29a..92791bf31c9bf68f20039159f98cdee2a5eeccd7 100644 (file)
@@ -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++)
                                {