mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Fix conversion loses precision ssize_t to int in evthread_notify_base_default()
This commit is contained in:
parent
7afbdcf25e
commit
66ee086bf1
2
event.c
2
event.c
@ -2575,7 +2575,7 @@ static int
|
|||||||
evthread_notify_base_default(struct event_base *base)
|
evthread_notify_base_default(struct event_base *base)
|
||||||
{
|
{
|
||||||
char buf[1];
|
char buf[1];
|
||||||
int r;
|
ev_ssize_t r;
|
||||||
buf[0] = (char) 0;
|
buf[0] = (char) 0;
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
r = send(base->th_notify_fd[1], buf, 1, 0);
|
r = send(base->th_notify_fd[1], buf, 1, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user