Skip to content

Commit 8aa3b36

Browse files
committed
Fix sign warning
1 parent 90bed5a commit 8aa3b36

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

av/subtitles/subtitle.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import cython
22
from cython.cimports.cpython import PyBuffer_FillInfo, PyBytes_FromString
3-
from cython.cimports.libc.stdint import int64_t, uint64_t
43
from cython.cimports.libc.string import memcpy, strlen
54

65

@@ -10,7 +9,7 @@ def __dealloc__(self):
109
lib.avsubtitle_free(cython.address(self.struct))
1110

1211

13-
_cinit_bypass_sentinel = object()
12+
_cinit_bypass_sentinel = cython.declare(object, object())
1413

1514

1615
@cython.cclass
@@ -293,7 +292,7 @@ def dialogue(self):
293292
Extract the dialogue from the ass format. Strip comments.
294293
"""
295294
comma_count: cython.short = 0
296-
i: uint64_t = 0
295+
i: cython.Py_ssize_t = 0
297296
state: cython.bint = False
298297
ass_text: bytes = self.ass
299298
char, next_char = cython.declare(cython.char)

0 commit comments

Comments
 (0)