mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-11 08:30:55 +00:00
Made type conversion explicit.
This commit is contained in:
parent
c6fcc40ac5
commit
0f399b0a0c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user