Fix -Wshorten-64-to-32 for darwin builds

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2022-10-16 19:25:33 +02:00
parent 8414ea0691
commit 15bcd6250a
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ struct SocketInterruptablePollWrapper
do do
{ {
Poco::Timestamp start; Poco::Timestamp start;
rc = ::poll(poll_buf, 2, remaining_time.totalMilliseconds()); rc = ::poll(poll_buf, 2, static_cast<int>(remaining_time.totalMilliseconds()));
if (rc < 0 && errno == POCO_EINTR) if (rc < 0 && errno == POCO_EINTR)
{ {
Poco::Timestamp end; Poco::Timestamp end;

View File

@ -329,7 +329,7 @@ int decompressFiles(int input_fd, char * path, char * name, bool & have_compress
int read_exe_path(char *exe, size_t buf_sz) int read_exe_path(char *exe, size_t buf_sz)
{ {
uint32_t size = buf_sz; uint32_t size = static_cast<uint32_t>(buf_sz);
char apple[size]; char apple[size];
if (_NSGetExecutablePath(apple, &size) != 0) if (_NSGetExecutablePath(apple, &size) != 0)
return 1; return 1;