Skip to content

Commit 63dc07f

Browse files
authored
[libclang/python] Fix numResults field type of CCRStructure (#158598)
Fix the type of the `numResults` field of `CCRStructure`, as pointed out here: #140539 (comment)
1 parent 5c71710 commit 63dc07f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/bindings/python/clang/cindex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3150,7 +3150,7 @@ def string(self) -> CompletionString:
31503150

31513151

31523152
class CCRStructure(Structure):
3153-
_fields_ = [("results", POINTER(CodeCompletionResult)), ("numResults", c_int)]
3153+
_fields_ = [("results", POINTER(CodeCompletionResult)), ("numResults", c_uint)]
31543154

31553155
results: NoSliceSequence[CodeCompletionResult]
31563156
numResults: int

0 commit comments

Comments
 (0)