Skip to content

Commit cfa04a3

Browse files
committed
use std::size_t for goto-instruction step_nr
To avoid a narrowing cast, use std::size_t for a copy of a goto-instruction step_nr.
1 parent fc412c7 commit cfa04a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/goto-programs/goto_trace.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ void show_state_header(
351351
messaget::mstreamt &out,
352352
const namespacet &ns,
353353
const goto_trace_stept &state,
354-
unsigned step_nr,
354+
std::size_t step_nr,
355355
const trace_optionst &options)
356356
{
357357
out << '\n';
@@ -516,7 +516,7 @@ void show_full_goto_trace(
516516
const goto_tracet &goto_trace,
517517
const trace_optionst &options)
518518
{
519-
unsigned prev_step_nr=0;
519+
std::size_t prev_step_nr = 0;
520520
bool first_step=true;
521521
std::size_t function_depth=0;
522522

0 commit comments

Comments
 (0)