mirror of
https://github.com/MariaDB/server.git
synced 2025-08-16 18:19:41 +00:00
Fix and reenable Windows compiler warning C4800 (size_t conversion).
This commit is contained in:
@ -172,7 +172,7 @@ int logger_vprintf(LOGGER_HANDLE *log, const char* fmt, va_list ap)
|
||||
if (n_bytes >= sizeof(cvtbuf))
|
||||
n_bytes= sizeof(cvtbuf) - 1;
|
||||
|
||||
result= my_write(log->file, (uchar *) cvtbuf, n_bytes, MYF(0));
|
||||
result= (int)my_write(log->file, (uchar *) cvtbuf, n_bytes, MYF(0));
|
||||
|
||||
exit:
|
||||
flogger_mutex_unlock(&log->lock);
|
||||
@ -196,7 +196,7 @@ int logger_write(LOGGER_HANDLE *log, const char *buffer, size_t size)
|
||||
goto exit; /* Log rotation needed but failed */
|
||||
}
|
||||
|
||||
result= my_write(log->file, (uchar *) buffer, size, MYF(0));
|
||||
result= (int)my_write(log->file, (uchar *) buffer, size, MYF(0));
|
||||
|
||||
exit:
|
||||
flogger_mutex_unlock(&log->lock);
|
||||
|
Reference in New Issue
Block a user