Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
set value -1 in unsigned short cannot work fine ...
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Tue, 9 Oct 2012 00:39:02 +0000 (02:39 +0200)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Tue, 9 Oct 2012 00:39:02 +0000 (02:39 +0200)
src/xbt/mmalloc/mmprivate.h

index 53d17c9..061a4e7 100644 (file)
@@ -153,7 +153,7 @@ typedef struct {
     struct {
       size_t nfree;           /* Free fragments in a fragmented block.  */
       size_t first;           /* First free fragment of the block.  */
     struct {
       size_t nfree;           /* Free fragments in a fragmented block.  */
       size_t first;           /* First free fragment of the block.  */
-      unsigned short frag_size[MAX_FRAGMENT_PER_BLOCK];
+      short frag_size[MAX_FRAGMENT_PER_BLOCK];
       void *bt[MAX_FRAGMENT_PER_BLOCK][XBT_BACKTRACE_SIZE]; /* Where it was malloced (or realloced lastly) */
       heap_area_t equal_to[MAX_FRAGMENT_PER_BLOCK];
     } busy_frag;
       void *bt[MAX_FRAGMENT_PER_BLOCK][XBT_BACKTRACE_SIZE]; /* Where it was malloced (or realloced lastly) */
       heap_area_t equal_to[MAX_FRAGMENT_PER_BLOCK];
     } busy_frag;