aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;