Fix conversion loses precision ssize_t to int in evthread_notify_base_default()

This commit is contained in:
Cœur 2024-05-06 23:32:00 +08:00 committed by Azat Khuzhin
parent 7afbdcf25e
commit 66ee086bf1

View File

@ -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);