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
intel compilers detected some mistakes
[simgrid.git]
/
src
/
xbt
/
dynar.cpp
diff --git
a/src/xbt/dynar.cpp
b/src/xbt/dynar.cpp
index
c6a637c
..
2d11645
100644
(file)
--- a/
src/xbt/dynar.cpp
+++ b/
src/xbt/dynar.cpp
@@
-444,7
+444,7
@@
extern "C" unsigned int xbt_dynar_search(xbt_dynar_t const dynar, void* const el
}
THROWF(not_found_error, 0, "Element %p not part of dynar %p", elem, dynar);
}
THROWF(not_found_error, 0, "Element %p not part of dynar %p", elem, dynar);
- return
-1
; // Won't happen, just to please eclipse
+ return
0
; // Won't happen, just to please eclipse
}
/** @brief Returns the position of the element in the dynar (or -1 if not found)
}
/** @brief Returns the position of the element in the dynar (or -1 if not found)