aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/samplebinding/typesystem_sample.xml
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/samplebinding/typesystem_sample.xml')
-rw-r--r--sources/shiboken6/tests/samplebinding/typesystem_sample.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/tests/samplebinding/typesystem_sample.xml b/sources/shiboken6/tests/samplebinding/typesystem_sample.xml
index 1a0f01264..bc5052e49 100644
--- a/sources/shiboken6/tests/samplebinding/typesystem_sample.xml
+++ b/sources/shiboken6/tests/samplebinding/typesystem_sample.xml
@@ -132,7 +132,7 @@
<target-to-native>
<add-conversion check="checkPyCapsuleOrPyCObject(%in)" type="PyObject">
void *ptr = PyCapsule_GetPointer(%in, nullptr);
- %out = *((%OUTTYPE*)ptr);
+ %out = *reinterpret_cast&lt;%OUTTYPE*&gt;(ptr);
</add-conversion>
</target-to-native>
</conversion-rule>