diff options
| author | Ryan Snyder <ryan@vector35.com> | 2018-06-28 06:58:06 -0400 |
|---|---|---|
| committer | Ryan Snyder <ryan@vector35.com> | 2018-06-28 06:58:06 -0400 |
| commit | 8833eeb4c3b89f3ba6423b7f67a1a4277cabfc82 (patch) | |
| tree | 0d0054a6eab1f3658fb6805473a134104deccc5b /binaryviewtype.cpp | |
| parent | 08409f8e134b3d93fc56e5e29670f8a8f4def890 (diff) | |
Fix lifting of intrinsics in Python bindings
Diffstat (limited to 'binaryviewtype.cpp')
| -rw-r--r-- | binaryviewtype.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binaryviewtype.cpp b/binaryviewtype.cpp index 233fdb87..762b2de7 100644 --- a/binaryviewtype.cpp +++ b/binaryviewtype.cpp @@ -29,7 +29,7 @@ BNBinaryView* BinaryViewType::CreateCallback(void* ctxt, BNBinaryView* data) BinaryViewType* type = (BinaryViewType*)ctxt; Ref<BinaryView> view = new BinaryView(BNNewViewReference(data)); Ref<BinaryView> result = type->Create(view); - if (result == nullptr) + if (!result) return nullptr; return BNNewViewReference(result->GetObject()); } |
