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
Type consistency.
[simgrid.git]
/
src
/
surf
/
disk_s19.cpp
diff --git
a/src/surf/disk_s19.cpp
b/src/surf/disk_s19.cpp
index
aa2d0ec
..
d84dfc3
100644
(file)
--- a/
src/surf/disk_s19.cpp
+++ b/
src/surf/disk_s19.cpp
@@
-75,7
+75,7
@@
void DiskS19::update_penalties(double delta) const
{
const kernel::lmm::Element* elem = nullptr;
const kernel::lmm::Element* nextelem = nullptr;
-
int numelem
= 0;
+
size_t numelem
= 0;
while (const auto* var = get_constraint()->get_variable_safe(&elem, &nextelem, &numelem)) {
auto* action = static_cast<DiskS19Action*>(var->get_id());
action->sharing_penalty_ += delta;