1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-25 18:30:07 +00:00

Made type conversion explicit.

This commit is contained in:
Thomas Harte 2016-12-30 19:59:01 -05:00
parent c6fcc40ac5
commit 0f399b0a0c

View File

@ -93,7 +93,7 @@ void FileHolder::ensure_file_is_at_least_length(long length)
if(bytes_to_write > 0)
{
uint8_t *empty = new uint8_t[bytes_to_write];
memset(empty, 0, bytes_to_write);
memset(empty, 0, (size_t)bytes_to_write);
fwrite(empty, sizeof(uint8_t), (size_t)bytes_to_write, file_);
delete[] empty;
}