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
Use the correct value for the number of elements in the dynar.
[simgrid.git]
/
src
/
xbt
/
dynar.c
diff --git
a/src/xbt/dynar.c
b/src/xbt/dynar.c
index
4e89515
..
8fc3b1b
100644
(file)
--- a/
src/xbt/dynar.c
+++ b/
src/xbt/dynar.c
@@
-432,7
+432,7
@@
xbt_dynar_search(xbt_dynar_t const dynar,
void *const elem) {
int it;
- for (it=0; it< dynar->
size
; it++)
+ for (it=0; it< dynar->
used
; it++)
if (!memcmp(_xbt_dynar_elm(dynar, it),elem,dynar->elmsize))
return it;