fix size_t to row_t/column_t::index_t conversion warning

This commit is contained in:
Thomas Fussell 2017-03-23 20:13:05 -04:00
parent 31c152c9b6
commit 4ca534a83a

View File

@ -76,11 +76,11 @@ cell_vector range::vector(std::size_t vector_index)
if (order_ == major_order::row) if (order_ == major_order::row)
{ {
cursor.row(cursor.row() + vector_index); cursor.row(cursor.row() + static_cast<row_t>(vector_index));
} }
else else
{ {
cursor.column_index(cursor.column_index() + vector_index); cursor.column_index(cursor.column_index() + static_cast<column_t::index_t>(vector_index));
} }
return cell_vector(ws_, cursor, ref_, order_, skip_null_, false); return cell_vector(ws_, cursor, ref_, order_, skip_null_, false);