diff options
author | Gael Guennebaud <g.gael@free.fr> | 2019-02-19 21:59:53 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2019-02-19 21:59:53 +0100 |
commit | 9ac1634fdff94bf18b534066eb0e3029ac182fe2 (patch) | |
tree | 4dc8ac77a54e63b60e44856c0fbd3a66c450c995 | |
parent | 292d61970a025f08daac53a20f6ac8fc7c00574e (diff) |
Fix conversion warnings
-rw-r--r-- | unsupported/Eigen/src/SparseExtra/RandomSetter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unsupported/Eigen/src/SparseExtra/RandomSetter.h b/unsupported/Eigen/src/SparseExtra/RandomSetter.h index ee97299af..7542cf764 100644 --- a/unsupported/Eigen/src/SparseExtra/RandomSetter.h +++ b/unsupported/Eigen/src/SparseExtra/RandomSetter.h @@ -249,10 +249,10 @@ class RandomSetter } } // prefix sum - Index count = 0; + StorageIndex count = 0; for (Index j=0; j<mp_target->outerSize(); ++j) { - Index tmp = positions[j]; + StorageIndex tmp = positions[j]; mp_target->outerIndexPtr()[j] = count; positions[j] = count; count += tmp; @@ -281,7 +281,7 @@ class RandomSetter mp_target->innerIndexPtr()[i+1] = mp_target->innerIndexPtr()[i]; --i; } - mp_target->innerIndexPtr()[i+1] = inner; + mp_target->innerIndexPtr()[i+1] = internal::convert_index<StorageIndex>(inner); mp_target->valuePtr()[i+1] = it->second.value; } } |