From 64e50f15e4a4fb6ffcd2aa3774f1b0dde990e99f Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Mon, 6 Apr 2009 22:29:34 +0000 Subject: update 2geom. big commit as it has been a while. (2geom svn rev. 1870, i think) i turned some optional compilation stuff *on* per default, to help building inkscape. (bzr r7638) --- src/2geom/conjugate_gradient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/2geom/conjugate_gradient.cpp') diff --git a/src/2geom/conjugate_gradient.cpp b/src/2geom/conjugate_gradient.cpp index f5a0f9cd8..9c4ea7776 100644 --- a/src/2geom/conjugate_gradient.cpp +++ b/src/2geom/conjugate_gradient.cpp @@ -46,7 +46,7 @@ matrix_times_vector(valarray const &matrix, /* m * n */ unsigned n = vec.size(); unsigned m = result.size(); assert(m*n == matrix.size()); - const double* mp = &matrix[0]; + const double* mp = &const_cast&>(matrix)[0]; for (unsigned i = 0; i < m; i++) { double res = 0; for (unsigned j = 0; j < n; j++) -- cgit v1.2.3