mirror of
https://github.com/TomHarte/CLK.git
synced 2024-07-05 10:28:58 +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)
|
if(bytes_to_write > 0)
|
||||||
{
|
{
|
||||||
uint8_t *empty = new uint8_t[bytes_to_write];
|
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_);
|
fwrite(empty, sizeof(uint8_t), (size_t)bytes_to_write, file_);
|
||||||
delete[] empty;
|
delete[] empty;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user