https://github.com/DeinAlptraum created https://github.com/llvm/llvm-project/pull/158598
Fix the type of the `numResults` field of `CCRStructure`, as pointed out here: https://github.com/llvm/llvm-project/pull/140539#discussion_r2317808734 >From 32d419b80d18012e2f93ce939b40eda1e25a9aaa Mon Sep 17 00:00:00 2001 From: Jannick Kremer <[email protected]> Date: Mon, 15 Sep 2025 19:34:00 +0900 Subject: [PATCH] [libclang/python] Fix numResults field type of CCRStructure --- clang/bindings/python/clang/cindex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/bindings/python/clang/cindex.py b/clang/bindings/python/clang/cindex.py index 3398823836e62..071bd76f95906 100644 --- a/clang/bindings/python/clang/cindex.py +++ b/clang/bindings/python/clang/cindex.py @@ -3150,7 +3150,7 @@ def string(self) -> CompletionString: class CCRStructure(Structure): - _fields_ = [("results", POINTER(CodeCompletionResult)), ("numResults", c_int)] + _fields_ = [("results", POINTER(CodeCompletionResult)), ("numResults", c_uint)] results: NoSliceSequence[CodeCompletionResult] numResults: int _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
