summaryrefslogtreecommitdiff
path: root/win32select.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-10-14 13:51:24 -0400
committerNick Mathewson <nickm@torproject.org>2010-10-14 13:51:24 -0400
commite06f514d4e7bbc5d777c40400f5aecbded667854 (patch)
tree5e3b40c3e8d6d255da75079f6c18bc01f6d48c9d /win32select.c
parent6be589ae687531a992e5ce4c32de78ba5197d1d3 (diff)
downloadlibevent-e06f514d4e7bbc5d777c40400f5aecbded667854.tar.gz
Fix signed/unsigned warnings on win32
Diffstat (limited to 'win32select.c')
-rw-r--r--win32select.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32select.c b/win32select.c
index 26c107f2..af8c6206 100644
--- a/win32select.c
+++ b/win32select.c
@@ -126,7 +126,7 @@ do_fd_set(struct win32op *op, struct idx_info *ent, evutil_socket_t s, int read)
if (ent->write_pos_plus1 > 0)
return (0);
}
- if (set->fd_count == op->fd_setsz) {
+ if ((int)set->fd_count == op->fd_setsz) {
if (realloc_fd_sets(op, op->fd_setsz*2))
return (-1);
/* set pointer will have changed and needs reiniting! */
@@ -155,7 +155,7 @@ do_fd_clear(struct event_base *base,
}
if (i < 0)
return (0);
- if (--set->fd_count != i) {
+ if (--set->fd_count != (unsigned)i) {
struct idx_info *ent2;
SOCKET s2;
s2 = set->fd_array[i] = set->fd_array[set->fd_count];