Skip to content
Snippets Groups Projects
Commit fd4f1a12 authored by Oliver Sander's avatar Oliver Sander
Browse files

Avoid signed/unsigned warning by explicity cast

The BlockVector capacity is expected to be an unsigned integer.
However, literals like '100' are signed, and therefore triggered
a warning.
parent 4f7ad3d5
No related branches found
No related tags found
1 merge request!240Allow number types as entries of matrix and vector types
......@@ -545,7 +545,7 @@ namespace Imp {
{
static_assert(std::numeric_limits<S>::is_integer,
"capacity must be an unsigned integral type (be aware, that this constructor does not set the default value!)" );
if(_capacity > _n)
if((size_type)_capacity > _n)
storage_.reserve(_capacity);
storage_.resize(_n);
syncBaseArray();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment