Browse Source

Fix warning, OrignalPtr is an IntPtr and therefore can not be null.

pull/420/head
Andrius Bentkus 10 years ago
parent
commit
1bffbe8dee
  1. 2
      src/Core/Parser/ASTConverter.cs

2
src/Core/Parser/ASTConverter.cs

@ -619,7 +619,7 @@ namespace CppSharp @@ -619,7 +619,7 @@ namespace CppSharp
if (decl == null)
return null;
if (decl.OriginalPtr == null)
if (decl.OriginalPtr == IntPtr.Zero)
throw new NotSupportedException("Original pointer must not be null");
var originalPtr = decl.OriginalPtr;

Loading…
Cancel
Save