Skip to content

Commit 7fb846f

Browse files
committed
BinaryWriter: explicitly flush .npy file on header update
1 parent 05e4e54 commit 7fb846f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/Plugins/BinaryWriter/NpyFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ void NpyFile::updateHeader()
168168
std::cerr << "Error. Header has grown too big to update in-place " << std::endl;
169169
}
170170
m_file->write(newShape.toUTF8(), newShape.getNumBytesAsUTF8());
171-
//m_file->flush(); // doesn't seem to be necessary, already flushed due to overwrite
171+
m_file->flush(); // not necessary, already flushed due to overwrite? do it anyway
172172
m_file->setPosition(currentPos); // restore position to end of file
173173
}
174174
else

0 commit comments

Comments
 (0)