Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Dude, that was baaad... ;)
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 21 Dec 2004 19:50:39 +0000 (19:50 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 21 Dec 2004 19:50:39 +0000 (19:50 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@688 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/xbt/sysdep.h

index b94cfb9..814a62c 100644 (file)
@@ -32,7 +32,7 @@ BEGIN_DECL
                            :(NULL))
 #define xbt_malloc(n)   (malloc(n) ?: (xbt_die("memory allocation error"),NULL))
 #define xbt_malloc0(n)  (calloc( (n),1 ) ?: (xbt_die("memory allocation error"),NULL))
                            :(NULL))
 #define xbt_malloc(n)   (malloc(n) ?: (xbt_die("memory allocation error"),NULL))
 #define xbt_malloc0(n)  (calloc( (n),1 ) ?: (xbt_die("memory allocation error"),NULL))
-#define xbt_realloc(p,s) (s? (p? (realloc(p,s)?:xbt_die("memory allocation error"),NULL) \
+#define xbt_realloc(p,s) (s? (p? (realloc(p,s)?:(xbt_die("memory allocation error"),NULL)) \
                                : xbt_malloc(s)) \
                            : (p? (free(p),NULL) \
                                : NULL))
                                : xbt_malloc(s)) \
                            : (p? (free(p),NULL) \
                                : NULL))