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

Moved curly bracket.

This commit is contained in:
Thomas Harte 2017-08-11 19:19:04 -04:00
parent 2d81acb82e
commit daafebe7ac

View File

@ -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_);