File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -615,7 +615,7 @@ bool compilet::write_bin_object_file(
615
615
if (write_goto_binary (outfile, lsymbol_table, functions))
616
616
return true ;
617
617
618
- unsigned cnt=function_body_count (functions);
618
+ const auto cnt=function_body_count (functions);
619
619
620
620
statistics () << " Functions: " << functions.function_map .size ()
621
621
<< " ; " << cnt << " have a body." << eom;
@@ -673,15 +673,15 @@ compilet::~compilet()
673
673
delete_directory (dir);
674
674
}
675
675
676
- unsigned compilet::function_body_count (const goto_functionst &functions) const
676
+ std:: size_t compilet::function_body_count (const goto_functionst &functions) const
677
677
{
678
- int fbs =0 ;
678
+ std:: size_t count =0 ;
679
679
680
680
for (const auto &f : functions.function_map )
681
681
if (f.second .body_available ())
682
- fbs ++;
682
+ count ++;
683
683
684
- return fbs ;
684
+ return count ;
685
685
}
686
686
687
687
void compilet::add_compiler_specific_defines (configt &config) const
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ class compilet : public messaget
104
104
cmdlinet &cmdline;
105
105
bool warning_is_fatal;
106
106
107
- unsigned function_body_count (const goto_functionst &) const ;
107
+ std:: size_t function_body_count (const goto_functionst &) const ;
108
108
109
109
void add_compiler_specific_defines (class configt &config) const ;
110
110
You can’t perform that action at this time.
0 commit comments