Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : update second parameter of mmorecore function (size is a size_t not...
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Tue, 23 Oct 2012 08:26:38 +0000 (10:26 +0200)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Sat, 27 Oct 2012 20:39:20 +0000 (22:39 +0200)
src/xbt/mmalloc/mmorecore.c
src/xbt/mmalloc/mmprivate.h

index c5d3524..a2f6cfe 100644 (file)
@@ -53,7 +53,7 @@ static size_t pagesize;
 
     It never returns NULL. Instead, it dies verbosely on errors. */
 
-void *mmorecore(struct mdesc *mdp, int size)
+void *mmorecore(struct mdesc *mdp, size_t size)
 {
   ssize_t test = 0;
   void *result; // please keep it uninitialized to track issues
index a0c0b56..8cfc0ad 100644 (file)
@@ -272,7 +272,7 @@ XBT_PUBLIC( void *)__mmalloc_remap_core(xbt_mheap_t mdp);
 /*  Get core for the memory region specified by MDP, using SIZE as the
     amount to either add to or subtract from the existing region.  Works
     like sbrk(), but using mmap(). */
-XBT_PUBLIC( void *)mmorecore(struct mdesc *mdp, int size);
+XBT_PUBLIC( void *)mmorecore(struct mdesc *mdp, size_t size);
 
 /* Thread-safety (if the sem is already created)
  *