examples/H5/read_file_attribs():

- type cast fixed
This commit is contained in:
2016-03-18 11:22:38 +01:00
parent dc9723dfe2
commit a8444e041b
+1 -1
View File
@@ -39,7 +39,7 @@ main (
free (attr_string);
H5GetFileAttribInfoByName (f, ATTR_INT32, NULL, &len);
int32_t* attr_int32 = (char*)malloc (sizeof(*attr_int32)*len);
int32_t* attr_int32 = (int32_t*)malloc (sizeof(*attr_int32)*len);
H5ReadFileAttribInt32 (f, ATTR_INT32, attr_int32);
printf ("%s:", ATTR_INT32);
for (int i = 0; i < len; i++) {