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
take care of new dll import and dll export in Windows
[simgrid.git]
/
src
/
xbt
/
xbt_matrix.c
diff --git
a/src/xbt/xbt_matrix.c
b/src/xbt/xbt_matrix.c
index
0238b47
..
5dfb955
100644
(file)
--- a/
src/xbt/xbt_matrix.c
+++ b/
src/xbt/xbt_matrix.c
@@
-132,7
+132,7
@@
void xbt_matrix_copy_values(xbt_matrix_t dst, xbt_matrix_t src,
xbt_matrix_t xbt_matrix_double_new_zeros(int lines, int rows) {
xbt_matrix_t res = xbt_matrix_new(lines, rows,sizeof(double),NULL);
- memset(res->data,0,
sizeof(res->data)
);
+ memset(res->data,0,
res->elmsize * res->lines * res->rows
);
return res;
}