diff options
| author | Gregory Szorc <gregory.szorc@gmail.com> | 2012-03-05 00:42:15 +0000 |
|---|---|---|
| committer | Gregory Szorc <gregory.szorc@gmail.com> | 2012-03-05 00:42:15 +0000 |
| commit | 74226d3597c38c72007a3865deafb5d9697e2ee2 (patch) | |
| tree | 09a80d17d62c25e6f701ebe0fb98e686256846bd /clang/bindings/python | |
| parent | 59bc8c437a8c5bcd0663fb5599789b8896cb1b55 (diff) | |
| download | bcm5719-llvm-74226d3597c38c72007a3865deafb5d9697e2ee2.tar.gz bcm5719-llvm-74226d3597c38c72007a3865deafb5d9697e2ee2.zip | |
[clang.py] Return bool from Cursor.__eq__
llvm-svn: 152011
Diffstat (limited to 'clang/bindings/python')
| -rw-r--r-- | clang/bindings/python/clang/cindex.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/bindings/python/clang/cindex.py b/clang/bindings/python/clang/cindex.py index c93d35c57b9..3b1e751ec0d 100644 --- a/clang/bindings/python/clang/cindex.py +++ b/clang/bindings/python/clang/cindex.py @@ -893,7 +893,7 @@ class Cursor(Structure): return Cursor_eq(self, other) def __ne__(self, other): - return not Cursor_eq(self, other) + return not self.__eq__(other) def is_definition(self): """ @@ -1876,7 +1876,7 @@ Cursor_def.errcheck = Cursor.from_result Cursor_eq = lib.clang_equalCursors Cursor_eq.argtypes = [Cursor, Cursor] -Cursor_eq.restype = c_uint +Cursor_eq.restype = bool Cursor_hash = lib.clang_hashCursor Cursor_hash.argtypes = [Cursor] |

