From 3b6fb71f2ebd2685637e94a10f885c804e6dce81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Thu, 16 Jan 2020 10:11:00 +0200 Subject: [PATCH] fix qpms_tmatrix_copy Former-commit-id: 42d6e8d194b926da4f2fe766818b72ee6c3b7d70 --- qpms/tmatrices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qpms/tmatrices.c b/qpms/tmatrices.c index 2811b87..1ce435c 100644 --- a/qpms/tmatrices.c +++ b/qpms/tmatrices.c @@ -57,7 +57,7 @@ qpms_tmatrix_t *qpms_tmatrix_copy(const qpms_tmatrix_t *T) { qpms_tmatrix_t *t = qpms_tmatrix_init(T->spec); size_t n = T->spec->n; for(size_t i = 0; i < n*n; ++i) - t->m = T->m; + t->m[i] = T->m[i]; return t; }