From: Matthew Fernandez Date: Sun, 20 Feb 2022 23:33:48 +0000 (-0800) Subject: cdt: [nfc] remove an unnecessary cast of the return value of '_DTOBJ' X-Git-Tag: 3.0.0~9^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13eac00227292ec1e22a6838e608b4a6394d3949;p=graphviz cdt: [nfc] remove an unnecessary cast of the return value of '_DTOBJ' --- diff --git a/lib/cdt/dtdisc.c b/lib/cdt/dtdisc.c index 6018e9b34..28fdccea2 100644 --- a/lib/cdt/dtdisc.c +++ b/lib/cdt/dtdisc.c @@ -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); }