From dfcc3d15b8728f2827b323a77e3f8a9e57ca9904 Mon Sep 17 00:00:00 2001 From: tradke Date: Wed, 23 Jul 2003 09:36:06 +0000 Subject: Removed typecast to non-const pointer in call to H5Awrite() (also it didn't compile on the Hitachi). This bug in the HDF5 API has been fixed in recent versions. git-svn-id: http://svn.cactuscode.org/arrangements/CactusExternal/FlexIO/trunk@49 21a6bef8-4479-4f54-8f8d-0db94a2919ef --- src/H5IO.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/H5IO.cc b/src/H5IO.cc index 37823c4..009bdbd 100644 --- a/src/H5IO.cc +++ b/src/H5IO.cc @@ -519,7 +519,7 @@ int H5IO::writeAttribute(CONST char *name,IObase::DataType typeID,Long length,co dimsa[0]=length; hid_t shape = H5Screate_simple(1, dimsa, NULL); hid_t attrib = H5Acreate(dataset,name,DataType2H5(typeID),shape,H5P_DEFAULT); - H5Awrite(attrib, DataType2H5(typeID), const_cast(data) ); + H5Awrite(attrib, DataType2H5(typeID), data); H5Aclose(attrib); H5Sclose(shape); return 1; -- cgit v1.2.3