Fix cast value in h5_utils

This commit is contained in:
2018-01-17 09:29:43 +01:00
parent 961aaa0fba
commit a23e51fdb6
+1 -1
View File
@@ -214,7 +214,7 @@ void h5_utils::write_attribute(H5::H5Object& target, h5_attr& attribute, map<str
} else if (attribute.data_type == NX_INT) {
try {
h5_utils::write_attribute(target, name, boost::any_cast<int32_t>(value));
h5_utils::write_attribute(target, name, boost::any_cast<int>(value));
return;
} catch (const boost::bad_any_cast& exception) {}