summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5F.c b/src/H5F.c
index 3fdd5e8..5c457b7 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -2043,7 +2043,8 @@ H5F_flush(H5F_t *f, H5F_scope_t scope, hbool_t invalidate,
/*
* Encode the driver information block.
*/
- if ((driver_size=H5FD_sb_size(f->shared->lf))) {
+ H5_ASSIGN_OVERFLOW(driver_size,H5FD_sb_size(f->shared->lf),hsize_t,size_t);
+ if (driver_size>0) {
driver_size += 16; /*driver block header */
assert(driver_size<=sizeof(dbuf));
p = dbuf;