mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
service: fix casts for EXTERNAL_POLL
This commit is contained in:
parent
aea9d0cead
commit
ea4d800809
1 changed files with 3 additions and 3 deletions
|
@ -303,9 +303,9 @@ lws_service_adjust_timeout(struct lws_context *context, int timeout_ms, int tsi)
|
|||
{
|
||||
lws_usec_t u = __lws_sul_service_ripe(pt->pt_sul_owner,
|
||||
LWS_COUNT_PT_SUL_OWNERS, lws_now_usecs());
|
||||
if (u < timeout_ms * 1000)
|
||||
timeout_ms = u / 1000;
|
||||
}
|
||||
if (u < (lws_usec_t)timeout_ms * (lws_usec_t)1000)
|
||||
timeout_ms = (int)(u / 1000);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue