Skip to content

Commit

Permalink
fixed GlibcArena.__eq__
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy committed Dec 14, 2021
1 parent 7698f30 commit b9493f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/compat.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This matrix indicates the version of Python and/or GDB
|:--:|:--:|:--:|
| [2018.02](https://github.com/hugsy/gef/releases/tag/2018.02) | 7.2 | Python 2.7, Python 3.4 |
| [2020.03](https://github.com/hugsy/gef/releases/tag/2020.03) | 7.4 | Python 2.7, Python 3.4 |
| [2022.01](https://github.com/hugsy/gef/releases/tag/2022.01) | 7.7 | Python 3.4 |
| [2022.01](https://github.com/hugsy/gef/releases/tag/2021.01) | 7.7 | Python 3.4 |
| [Current](https://github.com/hugsy/gef/tree/master) | 8.0+ | Python 3.6+ |


Expand Down
2 changes: 1 addition & 1 deletion gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ def __iter__(self):

def __eq__(self, other):
# You cannot have 2 arenas at the same address, so this check should be enough
return self.__addr == int(self)
return self.__addr == int(other)

def fastbin(self, i):
"""Return head chunk in fastbinsY[i]."""
Expand Down

0 comments on commit b9493f2

Please sign in to comment.