Skip to content

Commit a2928c9

Browse files
committed
Fix signature of native helper functions
1 parent 11f59f0 commit a2928c9

File tree

1 file changed

+4
-4
lines changed
  • graalpython/com.oracle.graal.python.cext/hpy

1 file changed

+4
-4
lines changed

graalpython/com.oracle.graal.python.cext/hpy/hpy.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void* graal_hpy_from_i8_array(void *arr, uint64_t len) {
9999
return polyglot_from_i8_array(arr, len);
100100
}
101101

102-
wchar_t* graal_hpy_from_wchar_array(wchar_t *arr, uint64_t len) {
102+
void* graal_hpy_from_wchar_array(wchar_t *arr, uint64_t len) {
103103
if (len == -1) {
104104
len = (uint64_t) wcslen(arr);
105105
}
@@ -114,11 +114,11 @@ void* graal_hpy_from_HPyModuleDef(void *ptr) {
114114
return polyglot_from_HPyModuleDef(ptr);
115115
}
116116

117-
HPyType_Spec* graal_hpy_from_HPyType_Spec(HPyType_Spec *ptr) {
117+
void* graal_hpy_from_HPyType_Spec(HPyType_Spec *ptr) {
118118
return polyglot_from_HPyType_Spec(ptr);
119119
}
120120

121-
HPyType_SpecParam* graal_hpy_from_HPyType_SpecParam_array(HPyType_SpecParam *ptr) {
121+
void* graal_hpy_from_HPyType_SpecParam_array(HPyType_SpecParam *ptr) {
122122
if (ptr != NULL) {
123123
uint64_t len=0;
124124
while (ptr[len].kind) {
@@ -324,7 +324,7 @@ typedef union {
324324
POLYGLOT_DECLARE_TYPE(OutVar);
325325
typedef struct { OutVar *content; } OutVarPtr;
326326
POLYGLOT_DECLARE_TYPE(OutVarPtr);
327-
OutVarPtr* graal_hpy_allocate_outvar() {
327+
void* graal_hpy_allocate_outvar() {
328328
return polyglot_from_OutVarPtr(truffle_managed_malloc(sizeof(OutVarPtr)));
329329
}
330330

0 commit comments

Comments
 (0)