File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
graalpython/com.oracle.graal.python.cext/src Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -307,27 +307,27 @@ PyObject* _Py_BuildValue_SizeT(const char *format, ...) {
307
307
case 'i' :
308
308
case 'b' :
309
309
case 'h' :
310
- APPEND_VALUE (list ,PyLong_FromLong ((int )ARG ));
310
+ APPEND_VALUE (list , PyLong_FromLong ((int )ARG ));
311
311
break ;
312
312
case 'l' :
313
- APPEND_VALUE (list , ( long )ARG );
313
+ APPEND_VALUE (list , PyLong_FromLong (( long )ARG ) );
314
314
break ;
315
315
case 'B' :
316
316
case 'H' :
317
317
case 'I' :
318
- APPEND_VALUE (list , ( unsigned int )ARG );
318
+ APPEND_VALUE (list , PyLong_FromUnsignedLong (( unsigned int )ARG ) );
319
319
break ;
320
320
case 'k' :
321
- APPEND_VALUE (list , ( unsigned long )ARG );
321
+ APPEND_VALUE (list , PyLong_FromUnsignedLong (( unsigned long )ARG ) );
322
322
break ;
323
323
case 'L' :
324
- APPEND_VALUE (list , ( long long )ARG );
324
+ APPEND_VALUE (list , PyLong_FromLongLong (( long long )ARG ) );
325
325
break ;
326
326
case 'K' :
327
- APPEND_VALUE (list , ( unsigned long long )ARG );
327
+ APPEND_VALUE (list , PyLong_FromLongLong (( unsigned long long )ARG ) );
328
328
break ;
329
329
case 'n' :
330
- APPEND_VALUE (list , ( Py_ssize_t )ARG );
330
+ APPEND_VALUE (list , PyLong_FromSsize_t (( Py_ssize_t )ARG ) );
331
331
break ;
332
332
case 'c' :
333
333
argchar [0 ] = (char )ARG ;
You can’t perform that action at this time.
0 commit comments