File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ static PyObject* get_uint(const biguint_t value) {
343
343
return Py_None ;
344
344
}
345
345
346
- result = PyBool_FromLong (value );
346
+ result = PyLong_FromLongLong (value );
347
347
348
348
return result ;
349
349
@@ -366,13 +366,13 @@ static PyObject* get_byterange(const struct M3U8ByteRange* const byterange) {
366
366
goto end ;
367
367
}
368
368
369
- length = PyBool_FromLong (byterange -> length );
369
+ length = PyLong_FromLongLong (byterange -> length );
370
370
371
371
if (length == NULL ) {
372
372
goto end ;
373
373
}
374
374
375
- offset = PyBool_FromLong (byterange -> offset );
375
+ offset = PyLong_FromLongLong (byterange -> offset );
376
376
377
377
if (offset == NULL ) {
378
378
goto end ;
@@ -426,13 +426,13 @@ static PyObject* get_resolution(const struct M3U8Resolution* const resolution) {
426
426
goto end ;
427
427
}
428
428
429
- width = PyBool_FromLong (resolution -> width );
429
+ width = PyLong_FromLongLong (resolution -> width );
430
430
431
431
if (width == NULL ) {
432
432
goto end ;
433
433
}
434
434
435
- height = PyBool_FromLong (resolution -> height );
435
+ height = PyLong_FromLongLong (resolution -> height );
436
436
437
437
if (height == NULL ) {
438
438
goto end ;
@@ -649,7 +649,7 @@ static PyObject* get_segments(
649
649
for (subindex = 0 ; subindex < segment -> key .keyformatversions .offset ; subindex ++ ) {
650
650
const int value = segment -> key .keyformatversions .items [subindex ];
651
651
652
- PyObject * item = PyBool_FromLong (value );
652
+ PyObject * item = PyLong_FromLongLong (value );
653
653
654
654
if (item == NULL ) {
655
655
status = 1 ;
You can’t perform that action at this time.
0 commit comments