summaryrefslogtreecommitdiffstats
path: root/c++/src
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
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')
-rw-r--r--c++/src/H5Attribute.cpp2
-rw-r--r--c++/src/H5CommonFG.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/c++/src/H5Attribute.cpp b/c++/src/H5Attribute.cpp
index ed2e7f3..fe2527b 100644
--- a/c++/src/H5Attribute.cpp
+++ b/c++/src/H5Attribute.cpp
@@ -162,7 +162,7 @@ void Attribute::read( const DataType& mem_type, H5std_string& strg ) const
void *ptr;
if (!is_variable_len) // only allocate for fixed-len string
{
- strg_C = new char [attr_size+1];
+ strg_C = new char [(size_t)attr_size+1];
ptr = strg_C;
}
else
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;