From 8833eeb4c3b89f3ba6423b7f67a1a4277cabfc82 Mon Sep 17 00:00:00 2001 From: Ryan Snyder Date: Thu, 28 Jun 2018 06:58:06 -0400 Subject: Fix lifting of intrinsics in Python bindings --- binaryviewtype.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'binaryviewtype.cpp') 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 view = new BinaryView(BNNewViewReference(data)); Ref result = type->Create(view); - if (result == nullptr) + if (!result) return nullptr; return BNNewViewReference(result->GetObject()); } -- cgit v1.3.1