diff options
author | Jyun-Yan You <jyyou.tw@gmail.com> | 2014-12-28 17:04:40 +0800 |
---|---|---|
committer | Jyun-Yan You <jyyou.tw@gmail.com> | 2014-12-28 17:04:40 +0800 |
commit | 077110b6bf57a8f58aaac91eee8903246a84b62f (patch) | |
tree | a113c8b634fe49202664b14676f9dda5f6750556 | |
parent | 4dcc4a0094ec43fb1778623d3cbb801946fbf0b8 (diff) | |
parent | 6c01fa42936d4c5280822983299fa3e7765b17aa (diff) |
Merge pull request #141 from dmitryvk/infinite-recursion-fix
Fix for issue #140
-rw-r--r-- | src/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.rs b/src/parser.rs index 043c1ed4..2b54b7e8 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -317,7 +317,7 @@ fn visit_composite(cursor: &Cursor, parent: &Cursor, let is_composite = if cursor.cur_type().kind() == CXType_Unexposed { if let TComp(ref ty_compinfo) = ty { match members.last() { - Some(&CompMember::Comp(ref c)) => c == ty_compinfo, + Some(&CompMember::Comp(ref c)) => c.borrow().deref() as *const _ == ty_compinfo.borrow().deref() as *const _, _ => false } } else { false } |