]> granicus.if.org Git - graphviz/commitdiff
ast chrtoi: remove unnecessary cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 24 Jul 2022 16:51:29 +0000 (09:51 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 30 Jul 2022 00:02:13 +0000 (17:02 -0700)
lib/ast/chrtoi.c

index 88a613db64499b9b730e18614543a4cd300a764e..f3af1c740109c54b316c1f0be5a9487c3a6fdb61 100644 (file)
@@ -30,7 +30,7 @@ int chrtoi(const char *s)
        switch (x = *((const unsigned char *) s++)) {
        case '\\':
            x = chresc(s - 1, &p);
-           s = (const char *) p;
+           s = p;
            break;
        case 0:
            return (c);