diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-07-20 13:55:48 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-07-20 13:55:48 +0200 |
commit | 2d93060291f3373a3325413159062a3b4d1e95e8 (patch) | |
tree | 7318694c3e6f752bbbdde735b3f2c4289254449e /doc/special_examples/Tutorial_sparse_example_details.cpp | |
parent | c11971de3799299e3a0dec9dff188734e6bfe8d3 (diff) |
Fix trivial warnings.
Diffstat (limited to 'doc/special_examples/Tutorial_sparse_example_details.cpp')
-rw-r--r-- | doc/special_examples/Tutorial_sparse_example_details.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/special_examples/Tutorial_sparse_example_details.cpp b/doc/special_examples/Tutorial_sparse_example_details.cpp index 7d820b44a..bc18b0188 100644 --- a/doc/special_examples/Tutorial_sparse_example_details.cpp +++ b/doc/special_examples/Tutorial_sparse_example_details.cpp @@ -8,7 +8,7 @@ typedef Eigen::Triplet<double> T; void insertCoefficient(int id, int i, int j, double w, std::vector<T>& coeffs, Eigen::VectorXd& b, const Eigen::VectorXd& boundary) { - int n = boundary.size(); + int n = int(boundary.size()); int id1 = i+j*n; if(i==-1 || i==n) b(id) -= w * boundary(j); // constrained coefficient |