diff --git a/elf/data.hh b/elf/data.hh index ed5c7a1..4a60944 100644 --- a/elf/data.hh +++ b/elf/data.hh @@ -553,7 +553,7 @@ struct Sym return (stb)(info >> 4); } - void set_binding(stb v) const + void set_binding(stb v) { info = (info & 0xF) | ((unsigned char)v << 4); } diff --git a/elf/elf++.hh b/elf/elf++.hh index ee59ed0..d16ea09 100644 --- a/elf/elf++.hh +++ b/elf/elf++.hh @@ -423,12 +423,12 @@ public: return *this; } - bool operator==(iterator &o) const + bool operator==(const iterator &o) const { return pos == o.pos; } - bool operator!=(iterator &o) const + bool operator!=(const iterator &o) const { return pos != o.pos; }