Commit c1eadeb6 authored by gsell's avatar gsell

issues with Intel C 11.1 fixed

parent 8030a724
......@@ -41,8 +41,8 @@ H5FedBeginTraverseEntities (
) {
H5_API_ENTER2 (h5t_iterator_p, "f=0x%p, codim=%d", f, codim);
h5t_iterator_p iter;
TRY2 (iter = h5_calloc (1, sizeof (*iter)));
TRY2 (h5t_init_leaf_iterator (f, iter, codim));
TRY3 (h5t_iterator_p, iter = (h5t_iterator_p)h5_calloc (1, sizeof (*iter)));
TRY3 (h5t_iterator_p, h5t_init_leaf_iterator (f, iter, codim));
H5_API_RETURN (iter);
}
......@@ -53,8 +53,8 @@ H5FedBeginTraverseBoundaryFaces (
) {
H5_API_ENTER2 (h5t_iterator_p, "f=0x%p, codim=%d", f, codim);
h5t_iterator_p iter;
TRY2 (iter = h5_calloc (1, sizeof (*iter)));
TRY2 (h5t_init_boundary_face_iterator (f, iter, codim));
TRY3 (h5t_iterator_p, iter = (h5t_iterator_p)h5_calloc (1, sizeof (*iter)));
TRY3 (h5t_iterator_p, h5t_init_boundary_face_iterator (f, iter, codim));
H5_API_RETURN (iter);
}
......
......@@ -180,6 +180,12 @@ done: \
goto done; \
}
#define TRY3( type, expr ) \
if ((int64_t)(ptrdiff_t)(expr) <= (int64_t)H5_ERR) { \
ret_value = (type) H5_ERR; \
goto done; \
}
#ifdef __cplusplus
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment