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
[sonar] Explicit cast when loosing precision (teshsuite/).
[simgrid.git]
/
teshsuite
/
surf
/
lmm_usage
/
lmm_usage.cpp
diff --git
a/teshsuite/surf/lmm_usage/lmm_usage.cpp
b/teshsuite/surf/lmm_usage/lmm_usage.cpp
index
a1257d3
..
9ecc8e5
100644
(file)
--- a/
teshsuite/surf/lmm_usage/lmm_usage.cpp
+++ b/
teshsuite/surf/lmm_usage/lmm_usage.cpp
@@
-147,7
+147,7
@@
static void test3()
/* Link constraints and variables */
for (int i = 0; i < 15; i++)
for (int j = 0; j < 16; j++)
- if (A[i][j])
+ if (A[i][j]
!= 0.0
)
Sys->expand(tmp_cnst[i], tmp_var[j], 1.0);
Sys->solve();