Skip to content

Commit cef7659

Browse files
author
Daniel Kroening
committed
counters need to be size_t
1 parent 2a7a0e8 commit cef7659

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/cbmc/show_vcc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void bmct::show_vcc_plain(std::ostream &out)
4747
symex_target_equationt::SSA_stepst::const_iterator
4848
last_it=has_threads?equation.SSA_steps.end():s_it;
4949

50-
for(unsigned count=1; p_it!=last_it; p_it++)
50+
for(std::size_t count=1; p_it!=last_it; p_it++)
5151
if(p_it->is_assume() || p_it->is_assignment() || p_it->is_constraint())
5252
{
5353
if(!p_it->ignore)

src/goto-programs/set_properties.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void label_properties(goto_modelt &goto_model)
4545

4646
void label_properties(
4747
goto_programt &goto_program,
48-
std::map<irep_idt, unsigned> &property_counters)
48+
std::map<irep_idt, std::size_t> &property_counters)
4949
{
5050
for(goto_programt::instructionst::iterator
5151
it=goto_program.instructions.begin();
@@ -75,7 +75,7 @@ void label_properties(
7575
if(prefix!="")
7676
prefix+=".";
7777

78-
unsigned &count=property_counters[prefix];
78+
std::size_t &count=property_counters[prefix];
7979

8080
count++;
8181

@@ -87,7 +87,7 @@ void label_properties(
8787

8888
void label_properties(goto_programt &goto_program)
8989
{
90-
std::map<irep_idt, unsigned> property_counters;
90+
std::map<irep_idt, std::size_t> property_counters;
9191
label_properties(goto_program, property_counters);
9292
}
9393

@@ -116,7 +116,7 @@ void set_properties(
116116

117117
void label_properties(goto_functionst &goto_functions)
118118
{
119-
std::map<irep_idt, unsigned> property_counters;
119+
std::map<irep_idt, std::size_t> property_counters;
120120

121121
for(goto_functionst::function_mapt::iterator
122122
it=goto_functions.function_map.begin();

src/goto-symex/symex_function_call.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ void goto_symext::parameter_assignments(
138138
if(function_type.has_ellipsis())
139139
{
140140
// These are va_arg arguments; their types may differ from call to call
141-
unsigned va_count=0;
141+
std::size_t va_count=0;
142142
const symbolt *va_sym=nullptr;
143143
while(!ns.lookup(
144144
id2string(function_identifier)+"::va_arg"+std::to_string(va_count),

src/util/irep.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ std::string irept::pretty(unsigned indent, unsigned max_indent) const
675675
result+=it->second.pretty(indent+2, max_indent);
676676
}
677677

678-
unsigned count=0;
678+
std::size_t count=0;
679679

680680
forall_irep(it, get_sub())
681681
{

0 commit comments

Comments
 (0)