Skip to content

Commit 49730c4

Browse files
author
taras
committed
Fix signed/unsigned comparison warnings, fix cpdef warning
1 parent a0443fc commit 49730c4

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

uvloop/handles/pipe.pxd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ cdef class ReadUnixTransport(UVStream):
2525
cdef ReadUnixTransport new(Loop loop, object protocol, Server server,
2626
object waiter)
2727

28+
cpdef write(self, data)
29+
2830

2931
cdef class WriteUnixTransport(UVStream):
3032

uvloop/handles/pipe.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ cdef class ReadUnixTransport(UVStream):
156156
def get_write_buffer_size(self):
157157
raise NotImplementedError
158158

159-
def write(self, data):
159+
cpdef write(self, data):
160160
raise NotImplementedError
161161

162162
def writelines(self, list_of_data):

uvloop/sslproto.pxd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ cdef class SSLProtocol:
6767
bint _ssl_writing_paused
6868
bint _app_reading_paused
6969

70-
size_t _incoming_high_water
71-
size_t _incoming_low_water
70+
Py_ssize_t _incoming_high_water
71+
Py_ssize_t _incoming_low_water
7272
bint _ssl_reading_paused
7373

7474
bint _app_writing_paused
75-
size_t _outgoing_high_water
76-
size_t _outgoing_low_water
75+
Py_ssize_t _outgoing_high_water
76+
Py_ssize_t _outgoing_low_water
7777

7878
object _app_protocol
7979
bint _app_protocol_is_buffer

0 commit comments

Comments
 (0)