Skip to content

Use std::size_t instead of int to match types at callsites #2406

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions jbmc/src/java_bytecode/java_string_library_preprocess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,7 @@ exprt java_string_library_preprocesst::get_primitive_value_of_object(
/// \return An expression representing the object at position `index` of `argv`.
exprt java_string_library_preprocesst::get_object_at_index(
const exprt &argv,
int index)
std::size_t index)
{
dereference_exprt deref_objs(argv, argv.type().subtype());
pointer_typet empty_pointer=pointer_type(empty_typet());
Expand Down Expand Up @@ -1390,7 +1390,7 @@ exprt java_string_library_preprocesst::get_object_at_index(
/// values of the argument at position `index` of `argv`.
exprt java_string_library_preprocesst::make_argument_for_format(
const exprt &argv,
int index,
std::size_t index,
const struct_typet &structured_type,
const source_locationt &loc,
const irep_idt &function_id,
Expand Down
4 changes: 2 additions & 2 deletions jbmc/src/java_bytecode/java_string_library_preprocess.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ class java_string_library_preprocesst:public messaget

exprt make_argument_for_format(
const exprt &argv,
int index,
std::size_t index,
const struct_typet &structured_type,
const source_locationt &loc,
const irep_idt &function_id,
Expand All @@ -351,7 +351,7 @@ class java_string_library_preprocesst:public messaget
symbol_table_baset &symbol_table,
code_blockt &code);

exprt get_object_at_index(const exprt &argv, int index);
exprt get_object_at_index(const exprt &argv, std::size_t index);

codet make_init_from_array_code(
const code_typet &type,
Expand Down