summaryrefslogtreecommitdiff
path: root/libbindgen/src
diff options
context:
space:
mode:
Diffstat (limited to 'libbindgen/src')
-rw-r--r--libbindgen/src/clang.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbindgen/src/clang.rs b/libbindgen/src/clang.rs
index 08c77b19..2fcaf9a0 100644
--- a/libbindgen/src/clang.rs
+++ b/libbindgen/src/clang.rs
@@ -367,7 +367,7 @@ impl Cursor {
let t = Type {
x: clang_getEnumDeclIntegerType(self.x),
};
- if t.kind() == CXType_Invalid { None } else { Some(t) }
+ if t.is_valid() { Some(t) } else { None }
}
}