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

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