mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Fix -Wshorten-64-to-32 for darwin builds
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
parent
8414ea0691
commit
15bcd6250a
@ -157,7 +157,7 @@ struct SocketInterruptablePollWrapper
|
||||
do
|
||||
{
|
||||
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)
|
||||
{
|
||||
Poco::Timestamp end;
|
||||
|
@ -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)
|
||||
{
|
||||
uint32_t size = buf_sz;
|
||||
uint32_t size = static_cast<uint32_t>(buf_sz);
|
||||
char apple[size];
|
||||
if (_NSGetExecutablePath(apple, &size) != 0)
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user