Skip to content

Commit caf30ce

Browse files
committed
fix syntax error when truncate is not available
1 parent ccdb039 commit caf30ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/drivers/ncmpio/ncmpio_close.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ ncmpio_close(void *ncdp)
195195
MPI_File_seek(fh, 0, MPI_SEEK_END);
196196
MPI_File_get_position(fh, &file_size);
197197
/* truncate file size to header size, if larger than header */
198-
if (file_size > ncp->xsz} {
198+
if (file_size > ncp->xsz) {
199199
mpireturn = MPI_File_set_size(fh, ncp->xsz);
200200
if (mpireturn != MPI_SUCCESS) {
201201
err = ncmpii_error_mpi2nc(mpireturn,"MPI_File_set_size");

0 commit comments

Comments
 (0)