Skip to content

Commit a332533

Browse files
committed
Use ssize_t instead of int where necessary
1 parent a68f3c9 commit a332533

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

uvloop/handles/process.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ cdef class UVProcess(UVHandle):
204204
cdef char** __to_cstring_array(self, list arr):
205205
cdef:
206206
int i
207-
int arr_len = len(arr)
207+
ssize_t arr_len = len(arr)
208208
bytes el
209209

210210
char **ret

uvloop/loop.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2312,7 +2312,7 @@ cdef class Loop:
23122312
"""
23132313
cdef:
23142314
Handle handle
2315-
int n
2315+
ssize_t n
23162316

23172317
if self._debug and sock.gettimeout() != 0:
23182318
raise ValueError("the socket must be non-blocking")

uvloop/sslproto.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ cdef:
2323
str _SHUTDOWN = "SHUTDOWN"
2424

2525

26-
cdef int READ_MAX_SIZE = 256 * 1024
26+
cdef ssize_t READ_MAX_SIZE = 256 * 1024
2727

2828

2929
@cython.no_gc_clear

0 commit comments

Comments
 (0)