A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Ensure type > 0.
[simgrid.git]
/
src
/
xbt
/
mmalloc
/
mrealloc.c
diff --git
a/src/xbt/mmalloc/mrealloc.c
b/src/xbt/mmalloc/mrealloc.c
index
ad6ea5d
..
b30db05
100644
(file)
--- a/
src/xbt/mmalloc/mrealloc.c
+++ b/
src/xbt/mmalloc/mrealloc.c
@@
-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();
}