fix a dozen of warnings with MSVC, and get rid of some useless throw()

This commit is contained in:
Gael Guennebaud
2012-02-06 15:57:51 +01:00
parent 6ad48c5d92
commit 99c694623a
6 changed files with 20 additions and 26 deletions

View File

@@ -160,7 +160,7 @@ class SparseVector
Scalar& insert(Index i)
{
Index startId = 0;
Index p = m_data.size() - 1;
Index p = Index(m_data.size()) - 1;
// TODO smart realloc
m_data.resize(p+2,1);