Skip to content

Commit bd4faad

Browse files
committed
Use std::size_t instead of int to match types at callsites
1 parent b8743fa commit bd4faad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

jbmc/src/java_bytecode/java_string_library_preprocess.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ exprt java_string_library_preprocesst::get_primitive_value_of_object(
13421342
/// \return An expression representing the object at position `index` of `argv`.
13431343
exprt java_string_library_preprocesst::get_object_at_index(
13441344
const exprt &argv,
1345-
int index)
1345+
std::size_t index)
13461346
{
13471347
dereference_exprt deref_objs(argv, argv.type().subtype());
13481348
pointer_typet empty_pointer=pointer_type(empty_typet());
@@ -1390,7 +1390,7 @@ exprt java_string_library_preprocesst::get_object_at_index(
13901390
/// values of the argument at position `index` of `argv`.
13911391
exprt java_string_library_preprocesst::make_argument_for_format(
13921392
const exprt &argv,
1393-
int index,
1393+
std::size_t index,
13941394
const struct_typet &structured_type,
13951395
const source_locationt &loc,
13961396
const irep_idt &function_id,

jbmc/src/java_bytecode/java_string_library_preprocess.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ class java_string_library_preprocesst:public messaget
337337

338338
exprt make_argument_for_format(
339339
const exprt &argv,
340-
int index,
340+
std::size_t index,
341341
const struct_typet &structured_type,
342342
const source_locationt &loc,
343343
const irep_idt &function_id,
@@ -351,7 +351,7 @@ class java_string_library_preprocesst:public messaget
351351
symbol_table_baset &symbol_table,
352352
code_blockt &code);
353353

354-
exprt get_object_at_index(const exprt &argv, int index);
354+
exprt get_object_at_index(const exprt &argv, std::size_t index);
355355

356356
codet make_init_from_array_code(
357357
const code_typet &type,

0 commit comments

Comments
 (0)