Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Redundant cast.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 7 Dec 2022 09:58:58 +0000 (10:58 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 7 Dec 2022 10:42:18 +0000 (11:42 +0100)
src/xbt/mmalloc/mmalloc.c

index 6bf8eac..57e02ad 100644 (file)
@@ -102,9 +102,9 @@ static void *register_morecore(struct mdesc *mdp, size_t size)
   void* result = mmalloc_aligned(mdp, size); // Never returns NULL
 
   /* Check if we need to grow the info table (in a multiplicative manner)  */
-  if ((size_t) BLOCK((char *) result + size) > mdp->heapsize) {
+  if (BLOCK((char*)result + size) > mdp->heapsize) {
     size_t newsize = mdp->heapsize;
-    while ((size_t) BLOCK((char *) result + size) > newsize)
+    while (BLOCK((char*)result + size) > newsize)
       newsize *= 2;
 
     /* Copy old info into new location */