Skip to content

Replace unsigned with appropriate type #1541

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
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
2 changes: 1 addition & 1 deletion src/pointer-analysis/value_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ value_sett::entryt &value_sett::get_entry(

bool value_sett::insert(
object_mapt &dest,
unsigned n,
object_numberingt::number_type n,
const objectt &object) const
{
auto entry=dest.read().find(n);
Expand Down
7 changes: 5 additions & 2 deletions src/pointer-analysis/value_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class value_sett

class object_map_dt
{
typedef std::map<unsigned, objectt> data_typet;
typedef std::map<object_numberingt::number_type, objectt> data_typet;
data_typet data;

public:
Expand Down Expand Up @@ -132,7 +132,10 @@ class value_sett
return insert(dest, object_numbering.number(src), objectt(offset));
}

bool insert(object_mapt &dest, unsigned n, const objectt &object) const;
bool insert(
object_mapt &dest,
object_numberingt::number_type n,
const objectt &object) const;

bool insert(object_mapt &dest, const exprt &expr, const objectt &object) const
{
Expand Down