]> granicus.if.org Git - graphviz/commitdiff
expr global: remove unnecessary casts
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 16 Sep 2021 03:51:24 +0000 (20:51 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Sep 2021 04:29:41 +0000 (21:29 -0700)
lib/expr/excc.c

index 626184a15620486582d4f4686407f00ebf84218b..e73a7be26b1830ab9eb0c28296015c7175c1880b 100644 (file)
@@ -621,8 +621,8 @@ gen(Excc_t* cc, Exnode_t* expr)
 static int
 global(Dt_t* table, void* object, void* handle)
 {
-       Excc_t* cc = (Excc_t*)handle;
-       Exid_t* sym = (Exid_t*)object;
+       Excc_t* cc = handle;
+       Exid_t* sym = object;
 
        if (sym->lex == DYNAMIC)
                sfprintf(cc->ccdisc->text, "static %s   %s;\n", extype(sym->type), sym->name);