Skip to content

Commit 9a811d8

Browse files
Change type of size to std::size_t
1 parent 77b7d77 commit 9a811d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/solvers/refinement/string_refinement.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -794,13 +794,13 @@ static optionalt<exprt> get_array(
794794
return {};
795795
}
796796

797-
auto n_opt = numeric_cast<unsigned>(size_val);
797+
auto n_opt = numeric_cast<std::size_t>(size_val);
798798
if(!n_opt)
799799
{
800800
stream << "(sr::get_array) size is not valid" << eom;
801801
return {};
802802
}
803-
unsigned n = *n_opt;
803+
std::size_t n = *n_opt;
804804

805805
const array_typet ret_type(char_type, from_integer(n, index_type));
806806
array_exprt ret(ret_type);

0 commit comments

Comments
 (0)