aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@21a6bef8-4479-4f54-8f8d-0db94a2919ef>2003-07-23 09:36:06 +0000
committertradke <tradke@21a6bef8-4479-4f54-8f8d-0db94a2919ef>2003-07-23 09:36:06 +0000
commitdfcc3d15b8728f2827b323a77e3f8a9e57ca9904 (patch)
tree521c1b8c057d5ba95f1a43ac4f21ce8fd7ed1a92
parentabcbb53ef2a7071a5c168350c5b74cb1c41963aa (diff)
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
-rw-r--r--src/H5IO.cc2
1 files changed, 1 insertions, 1 deletions
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<void*>(data) );
+ H5Awrite(attrib, DataType2H5(typeID), data);
H5Aclose(attrib);
H5Sclose(shape);
return 1;