Skip to content

Commit 4ec83fe

Browse files
authored
Merge pull request #22 from CognexVisionSoftware/bugfix/fix-ulong
Fix ulong handling in ModelBuilder
2 parents 18f2d71 + 209338d commit 4ec83fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CppAst/CppModelBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1792,7 +1792,7 @@ private CppType GetCppTypeInternal(CXCursor cursor, CXType type, CXCursor parent
17921792
return CppPrimitiveType.UnsignedInt;
17931793

17941794
case CXTypeKind.CXType_ULong:
1795-
return CppPrimitiveType.UnsignedInt;
1795+
return RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? CppPrimitiveType.UnsignedLongLong : CppPrimitiveType.UnsignedInt;
17961796

17971797
case CXTypeKind.CXType_ULongLong:
17981798
return CppPrimitiveType.UnsignedLongLong;

0 commit comments

Comments
 (0)