#2234 Use const_cast.

This commit is contained in:
XMRig
2021-04-06 12:07:06 +07:00
parent 2158adb711
commit ea1245026d

View File

@ -91,7 +91,7 @@ bool xmrig::FileLogWriter::writeLine(const char *data, size_t size)
{
const uv_buf_t buf[2] = {
uv_buf_init(new char[size], size),
uv_buf_init((char*)m_endl, sizeof(m_endl) - 1)
uv_buf_init(const_cast<char *>(m_endl), sizeof(m_endl) - 1)
};
memcpy(buf[0].base, data, size);