We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdab9d3 commit 9c37930Copy full SHA for 9c37930
uvloop/loop.pyx
@@ -218,7 +218,7 @@ cdef class Loop:
218
cdef inline _is_main_thread(self):
219
cdef uint64_t main_thread_id = system.MAIN_THREAD_ID
220
if system.MAIN_THREAD_ID_SET == 0:
221
- main_thread_id = <uint64_t><int64_t>threading_main_thread().ident
+ main_thread_id = <uint64_t>threading_main_thread().ident
222
system.setMainThreadID(main_thread_id)
223
return main_thread_id == PyThread_get_thread_ident()
224
@@ -711,7 +711,7 @@ cdef class Loop:
711
return
712
713
cdef uint64_t thread_id
714
- thread_id = <uint64_t><int64_t>PyThread_get_thread_ident()
+ thread_id = <uint64_t>PyThread_get_thread_ident()
715
716
if thread_id != self._thread_id:
717
raise RuntimeError(
0 commit comments