aboutsummaryrefslogtreecommitdiff
path: root/src/IO.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/IO.cc')
-rw-r--r--src/IO.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/IO.cc b/src/IO.cc
index a6c8eab..0287a9d 100644
--- a/src/IO.cc
+++ b/src/IO.cc
@@ -302,7 +302,7 @@ int IOnAnnotations(IOFile deviceID){
return dev->nAnnotations();
}
-int IOwriteAttribute(IOFile deviceID,char *name,int type,Long length,void *data){
+int IOwriteAttribute(IOFile deviceID,char *name,int type,Long length,const void *data){
IObase *dev=(IObase*)(deviceID);
IObase::DataType typeID = IObase::Int2DataType(type);
return dev->writeAttribute(name,typeID,length,data);