@@ -33,14 +33,14 @@ void unwindsett::parse_unwindset_one_loop(
33
33
if (val.empty ())
34
34
return ;
35
35
36
- std::optional<unsigned > thread_nr;
36
+ std::optional<std:: size_t > thread_nr;
37
37
if (isdigit (val[0 ]))
38
38
{
39
39
auto c_pos = val.find (' :' );
40
40
if (c_pos != std::string::npos)
41
41
{
42
42
std::string nr = val.substr (0 , c_pos);
43
- thread_nr = unsafe_string2unsigned (nr);
43
+ thread_nr = unsafe_string2size_t (nr);
44
44
val.erase (0 , nr.size () + 1 );
45
45
}
46
46
}
@@ -170,7 +170,7 @@ void unwindsett::parse_unwindset_one_loop(
170
170
171
171
if (thread_nr.has_value ())
172
172
{
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;
174
174
}
175
175
else
176
176
{
@@ -188,13 +188,13 @@ void unwindsett::parse_unwindset(
188
188
}
189
189
190
190
std::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
192
192
{
193
193
// We use the most specific limit we have
194
194
195
195
// thread x loop
196
196
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));
198
198
199
199
if (tl_it != thread_loop_map.end ())
200
200
return tl_it->second ;
0 commit comments