File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ cdef int ssl_SSL_ERROR_WANT_READ = ssl.SSL_ERROR_WANT_READ
125125cdef int ssl_SSL_ERROR_WANT_WRITE = ssl.SSL_ERROR_WANT_WRITE
126126cdef int ssl_SSL_ERROR_SYSCALL = ssl.SSL_ERROR_SYSCALL
127127
128- cdef uint64_t MAIN_THREAD_ID = < uint64_t> threading.main_thread().ident
128+ cdef uint64_t MAIN_THREAD_ID = < uint64_t>< int64_t > threading.main_thread().ident
129129
130130cdef int subprocess_PIPE = subprocess.PIPE
131131cdef int subprocess_STDOUT = subprocess.STDOUT
Original file line number Diff line number Diff line change @@ -638,7 +638,7 @@ cdef class Loop:
638638 cdef inline _check_thread(self ):
639639 if self ._thread_id == 0 :
640640 return
641- cdef uint64_t thread_id = PyThread_get_thread_ident()
641+ cdef uint64_t thread_id = < uint64_t >< int64_t > PyThread_get_thread_ident()
642642 if thread_id != self ._thread_id:
643643 raise RuntimeError (
644644 " Non-thread-safe operation invoked on an event loop other "
You can’t perform that action at this time.
0 commit comments