File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
graalpython/com.oracle.graal.python.cext/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -102,14 +102,15 @@ UPCALL_ID(__bool__);
102
102
case 'y': \
103
103
arg = PyTruffle_GetArg(v, kwds, kwdnames, rest_keywords_only); \
104
104
if (format[format_idx + 1] == '*') { \
105
- void** p = (void* *)PyTruffle_ArgN(output_idx); \
105
+ Py_buffer* p = (Py_buffer *)PyTruffle_ArgN(output_idx); \
106
106
const char* buf; \
107
107
format_idx++; /* skip over '*' */ \
108
- if (getbuffer (arg , ( Py_buffer * ) p , & buf ) < 0 ) { \
108
+ if (getbuffer (arg , p , & buf ) < 0 ) { \
109
109
PyErr_Format (PyExc_TypeError , "expected bytes, got %R" , Py_TYPE (arg )); \
110
110
__return_code__ ; \
111
111
return 0 ; \
112
112
} \
113
+ PyTruffle_WriteOut (output_idx , Py_buffer , * p ); \
113
114
} else if (arg == Py_None ) { \
114
115
if (c == 'z' ) { \
115
116
PyTruffle_WriteOut (output_idx , const char * , NULL ); \
You can’t perform that action at this time.
0 commit comments