diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-08-17 17:20:24 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-08-17 17:20:24 +0000 |
commit | 6b04623bcc64a5091a47fb18cd40af5e93b773ad (patch) | |
tree | fe68552cd580a308493b7a54f398e4b6c2795751 /bindings/python/clang/cindex.py | |
parent | 2312f5f4df83f8f624765d9cb86fc8f0dc9c2659 (diff) |
[python] Fix bug of the SourceLocation binding.
Patch by Anders Waldenborg!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137829 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/python/clang/cindex.py')
-rw-r--r-- | bindings/python/clang/cindex.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/python/clang/cindex.py b/bindings/python/clang/cindex.py index 2110170162..4b7dc005f6 100644 --- a/bindings/python/clang/cindex.py +++ b/bindings/python/clang/cindex.py @@ -112,7 +112,7 @@ class SourceLocation(Structure): f, l, c, o = c_object_p(), c_uint(), c_uint(), c_uint() SourceLocation_loc(self, byref(f), byref(l), byref(c), byref(o)) f = File(f) if f else None - self._data = (f, int(l.value), int(c.value), int(c.value)) + self._data = (f, int(l.value), int(c.value), int(o.value)) return self._data @property |