Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Ensure type > 0.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 13 Oct 2020 14:56:27 +0000 (16:56 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 13 Oct 2020 14:56:48 +0000 (16:56 +0200)
src/xbt/mmalloc/mrealloc.c

index ad6ea5d..b30db05 100644 (file)
@@ -124,7 +124,7 @@ void *mrealloc(xbt_mheap_t mdp, void *ptr, size_t size)
 
   default: /* Fragment -> ??; type=logarithm to base two of the fragment size.  */
 
-    if (type < 0) {
+    if (type <= 0) {
       fprintf(stderr, "Unknown mmalloc block type.\n");
       abort();
     }