mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-26 15:32:04 +00:00
Moved curly bracket.
This commit is contained in:
parent
2d81acb82e
commit
daafebe7ac
@ -80,8 +80,7 @@ uint16_t FileHolder::fgetc16be() {
|
||||
void FileHolder::ensure_file_is_at_least_length(long length) {
|
||||
fseek(file_, 0, SEEK_END);
|
||||
long bytes_to_write = length - ftell(file_);
|
||||
if(bytes_to_write > 0)
|
||||
{
|
||||
if(bytes_to_write > 0) {
|
||||
uint8_t *empty = new uint8_t[(size_t)bytes_to_write];
|
||||
memset(empty, 0, (size_t)bytes_to_write);
|
||||
fwrite(empty, sizeof(uint8_t), (size_t)bytes_to_write, file_);
|
||||
|
Loading…
x
Reference in New Issue
Block a user