@@ -33,14 +33,14 @@ void unwindsett::parse_unwindset_one_loop(
3333 if (val.empty ())
3434 return ;
3535
36- std::optional<unsigned > thread_nr;
36+ std::optional<std:: size_t > thread_nr;
3737 if (isdigit (val[0 ]))
3838 {
3939 auto c_pos = val.find (' :' );
4040 if (c_pos != std::string::npos)
4141 {
4242 std::string nr = val.substr (0 , c_pos);
43- thread_nr = unsafe_string2unsigned (nr);
43+ thread_nr = unsafe_string2size_t (nr);
4444 val.erase (0 , nr.size () + 1 );
4545 }
4646 }
@@ -170,7 +170,7 @@ void unwindsett::parse_unwindset_one_loop(
170170
171171 if (thread_nr.has_value ())
172172 {
173- thread_loop_map[std::pair<irep_idt, unsigned >(id, *thread_nr)] = uw;
173+ thread_loop_map[std::pair<irep_idt, std:: size_t >(id, *thread_nr)] = uw;
174174 }
175175 else
176176 {
@@ -188,13 +188,13 @@ void unwindsett::parse_unwindset(
188188}
189189
190190std::optional<unsigned >
191- unwindsett::get_limit (const irep_idt &loop_id, unsigned thread_nr) const
191+ unwindsett::get_limit (const irep_idt &loop_id, std:: size_t thread_nr) const
192192{
193193 // We use the most specific limit we have
194194
195195 // thread x loop
196196 auto tl_it =
197- thread_loop_map.find (std::pair<irep_idt, unsigned >(loop_id, thread_nr));
197+ thread_loop_map.find (std::pair<irep_idt, std:: size_t >(loop_id, thread_nr));
198198
199199 if (tl_it != thread_loop_map.end ())
200200 return tl_it->second ;
0 commit comments