From: Arnaud Giersch Date: Thu, 29 Sep 2022 14:03:20 +0000 (+0200) Subject: Useless cast. X-Git-Tag: v3.32~14 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/13cd9720a322a749793d9103a09acc8f2b622149?hp=080ff5c7668c4727e372d02ad96af56f597a51c6 Useless cast. --- diff --git a/src/xbt/dict.cpp b/src/xbt/dict.cpp index 59f4865f3e..280d047537 100644 --- a/src/xbt/dict.cpp +++ b/src/xbt/dict.cpp @@ -89,7 +89,7 @@ static void xbt_dict_rehash(xbt_dict_t dict) const unsigned oldsize = dict->table_size + 1; unsigned newsize = oldsize * 2; - auto* newtable = static_cast(xbt_realloc((char*)dict->table, newsize * sizeof(xbt_dictelm_t))); + auto* newtable = static_cast(xbt_realloc(dict->table, newsize * sizeof(xbt_dictelm_t))); memset(&newtable[oldsize], 0, oldsize * sizeof(xbt_dictelm_t)); /* zero second half */ newsize--; dict->table_size = newsize;