diff options
Diffstat (limited to 'src/H5Glink.c')
-rw-r--r-- | src/H5Glink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Glink.c b/src/H5Glink.c index 74361ca..0213422 100644 --- a/src/H5Glink.c +++ b/src/H5Glink.c @@ -195,7 +195,8 @@ H5G_link_build_table(H5O_loc_t *oloc, hid_t dxpl_id, H5G_link_table_t *ltable) HGOTO_ERROR(H5E_SYM, H5E_BADMESG, FAIL, "can't get link info") /* Set size of table */ - ltable->nlinks = linfo.nlinks; + H5_CHECK_OVERFLOW(linfo.nlinks, hsize_t, size_t); + ltable->nlinks = (size_t)linfo.nlinks; /* Allocate space for the table entries */ if(ltable->nlinks > 0) { |