summaryrefslogtreecommitdiffstats
path: root/c++/src/H5CommonFG.cpp
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2008-08-12 13:33:49 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2008-08-12 13:33:49 (GMT)
commit367f2125d956e1c38c99f59603df95f6f31b940e (patch)
tree13d975fd64da87abc8944861d297585a3acdb5dc /c++/src/H5CommonFG.cpp
parentf040f990a065db070a83e3217c209a83e204d6ca (diff)
downloadhdf5-367f2125d956e1c38c99f59603df95f6f31b940e.zip
hdf5-367f2125d956e1c38c99f59603df95f6f31b940e.tar.gz
hdf5-367f2125d956e1c38c99f59603df95f6f31b940e.tar.bz2
[svn-r15463] Description:
Bring revision 15462 (compiler warnings) back from trunk. Tested on: Mac OS X/32 10.5.4 (amazon) w/FORTRAN & C++ (Too minor to require h5committest)
Diffstat (limited to 'c++/src/H5CommonFG.cpp')
-rw-r--r--c++/src/H5CommonFG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c++/src/H5CommonFG.cpp b/c++/src/H5CommonFG.cpp
index 0217df2..f70e0d1 100644
--- a/c++/src/H5CommonFG.cpp
+++ b/c++/src/H5CommonFG.cpp
@@ -541,11 +541,11 @@ H5std_string CommonFG::getComment (const H5std_string& name) const
// temporary C-string for the object's comment
char* comment_C = new char[bufsize+1];
- herr_t ret_value = H5Oget_comment_by_name(loc_id, name.c_str(), comment_C, bufsize, H5P_DEFAULT);
+ ssize_t ret_value = H5Oget_comment_by_name(loc_id, name.c_str(), comment_C, bufsize, H5P_DEFAULT);
// if the actual length of the comment is longer than the anticipated
// value, then call H5Oget_comment_by_name again with the correct value
- if (ret_value > bufsize)
+ if ((size_t)ret_value > bufsize)
{
bufsize = ret_value;
delete []comment_C;