summaryrefslogtreecommitdiffstats
path: root/src/H5I.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2003-11-21 17:07:25 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2003-11-21 17:07:25 (GMT)
commitc1e333f00650b2b06d1705a4198a772e3adb91cd (patch)
tree27cbaedd444b80a97c7c8e83ebde41ad6edb1298 /src/H5I.c
parent22a36e9d59269874316c2bddff979fcce71c8d68 (diff)
downloadhdf5-c1e333f00650b2b06d1705a4198a772e3adb91cd.zip
hdf5-c1e333f00650b2b06d1705a4198a772e3adb91cd.tar.gz
hdf5-c1e333f00650b2b06d1705a4198a772e3adb91cd.tar.bz2
[svn-r7868] Purpose: new feature
Description: data type conversion between integers and float numbers. (Cover your ears. It's going to explode.:) Solution: covers all native type conversion. Mainly uses hardware conversion but handles overflow more gracefully. Platforms tested: h5committest
Diffstat (limited to 'src/H5I.c')
-rw-r--r--src/H5I.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/H5I.c b/src/H5I.c
index 51e9cf8..37240f3 100644
--- a/src/H5I.c
+++ b/src/H5I.c
@@ -117,7 +117,6 @@ H5FL_DEFINE_STATIC(H5I_id_info_t);
/*--------------------- Local function prototypes ---------------------------*/
static herr_t H5I_init_interface(void);
static H5I_id_info_t *H5I_find_id(hid_t id);
-static hid_t H5I_get_file_id(hid_t obj_id);
#ifdef H5I_DEBUG_OUTPUT
static herr_t H5I_debug(H5I_type_t grp);
#endif /* H5I_DEBUG_OUTPUT */
@@ -843,7 +842,7 @@ done:
*
*-------------------------------------------------------------------------
*/
-static hid_t
+hid_t
H5I_get_file_id(hid_t obj_id)
{
H5G_entry_t *ent;
@@ -1176,8 +1175,11 @@ H5I_find_id(hid_t id)
/* Check arguments */
grp = H5I_GRP(id);
- if (grp <= H5I_BADID || grp >= H5I_NGROUPS)
+
+ if (grp <= H5I_BADID || grp >= H5I_NGROUPS) {
HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, NULL, "invalid group number");
+ }
+
grp_ptr = H5I_id_group_list_g[grp];
if (grp_ptr == NULL || grp_ptr->count <= 0)
HGOTO_ERROR(H5E_ATOM, H5E_BADGROUP, NULL, "invalid group");