diff --git a/src/H5Part.c b/src/H5Part.c index b5a3232..3d35937 100644 --- a/src/H5Part.c +++ b/src/H5Part.c @@ -1903,7 +1903,7 @@ _set_view ( /* setting up the new view */ f->viewstart = start; f->viewend = end; - f->nparticles = end - start; + f->nparticles = end - start + 1; /* declare overall datasize */ f->shape = H5Screate_simple ( 1, &total, &total );