summaryrefslogtreecommitdiff
path: root/ev_port.c
diff options
context:
space:
mode:
Diffstat (limited to 'ev_port.c')
-rw-r--r--ev_port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ev_port.c b/ev_port.c
index db3bae5..169181d 100644
--- a/ev_port.c
+++ b/ev_port.c
@@ -103,7 +103,7 @@ port_poll (EV_P_ ev_tstamp timeout)
if (expect_false (nget == port_eventmax))
{
ev_free (port_events);
- port_eventmax = array_roundsize (port_event_t, port_eventmax << 1);
+ port_eventmax = array_nextsize (sizeof (port_event_t), port_eventmax, port_eventmax + 1);
port_events = (port_event_t *)ev_malloc (sizeof (port_event_t) * port_eventmax);
}
}