diff options
author | 2009-12-12 11:39:07 +0100 | |
---|---|---|
committer | 2009-12-12 11:39:07 +0100 | |
commit | d088ee35f644f9178270f0c3dc8c76011d208099 (patch) | |
tree | 47001aacbb83eba02c38d93ec97fbe09e7c8497c /Eigen/src/Sparse/CompressedStorage.h | |
parent | 494a88685ee995b34da0f3b79a68fa06c0ee63ff (diff) |
Added to possibility to compile unit tests at maximum warning level.
Silenced (amongst others) many conversion related warnings.
Diffstat (limited to 'Eigen/src/Sparse/CompressedStorage.h')
-rw-r--r-- | Eigen/src/Sparse/CompressedStorage.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Sparse/CompressedStorage.h b/Eigen/src/Sparse/CompressedStorage.h index fcf5c7bfe..b25b05e91 100644 --- a/Eigen/src/Sparse/CompressedStorage.h +++ b/Eigen/src/Sparse/CompressedStorage.h @@ -93,7 +93,7 @@ class CompressedStorage void append(const Scalar& v, int i) { - int id = m_size; + int id = static_cast<int>(m_size); resize(m_size+1, 1); m_values[id] = v; m_indices[id] = i; @@ -135,7 +135,7 @@ class CompressedStorage else end = mid; } - return start; + return static_cast<int>(start); } /** \returns the stored value at index \a key |