From 13cd9720a322a749793d9103a09acc8f2b622149 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 29 Sep 2022 16:03:20 +0200 Subject: [PATCH] Useless cast. --- src/xbt/dict.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2