]> granicus.if.org Git - graphviz/commitdiff
cdt: [nfc] remove an unnecessary cast of an argument to '_DTKEY'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 20 Feb 2022 23:34:42 +0000 (15:34 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 23 Feb 2022 04:41:47 +0000 (20:41 -0800)
lib/cdt/dtdisc.c

index 28fdccea2846625160abe289958bc36594c69094..12f340baf84c954159e16cb72eeb8c113f87a91b 100644 (file)
@@ -83,7 +83,7 @@ Dtdisc_t* dtdisc(Dt_t* dt, Dtdisc_t* disc, int type)
                {       t = r->right;
                        if(!(type&DT_SAMEHASH)) /* new hash value */
                        {       k = _DTOBJ(r,disc->link);
-                               k = _DTKEY((void*)k,disc->key,disc->size);
+                               k = _DTKEY(k, disc->key, disc->size);
                                r->hash = _DTHSH(dt,k,disc,disc->size);
                        }
                        (void)(*searchf)(dt, r, DT_RENEW);