Commit 95672b1d authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Merge declaration and initialization.

parent 2d8db34d
...@@ -104,10 +104,8 @@ xt_default_isect(Xt_idxlist idxlist_src, ...@@ -104,10 +104,8 @@ xt_default_isect(Xt_idxlist idxlist_src,
// if the get_intersection routine was not able to compute the intersection // if the get_intersection routine was not able to compute the intersection
INSTR_START(instr_fallback); INSTR_START(instr_fallback);
int num_indices_src, num_indices_dst; int num_indices_src = xt_idxlist_get_num_indices(idxlist_src),
num_indices_dst = xt_idxlist_get_num_indices(idxlist_dst);
num_indices_src = xt_idxlist_get_num_indices(idxlist_src);
num_indices_dst = xt_idxlist_get_num_indices(idxlist_dst);
if (num_indices_src == 0 || num_indices_dst == 0) if (num_indices_src == 0 || num_indices_dst == 0)
return xt_idxempty_new(); return xt_idxempty_new();
......
...@@ -468,10 +468,8 @@ xt_idxsection_get_intersection(Xt_idxlist idxlist_src, Xt_idxlist idxlist_dst) { ...@@ -468,10 +468,8 @@ xt_idxsection_get_intersection(Xt_idxlist idxlist_src, Xt_idxlist idxlist_dst) {
// both lists are index section: // both lists are index section:
Xt_idxsection idxsection_src, idxsection_dst; Xt_idxsection idxsection_src = (Xt_idxsection)idxlist_src,
idxsection_dst = (Xt_idxsection)idxlist_dst;
idxsection_src = (Xt_idxsection)idxlist_src;
idxsection_dst = (Xt_idxsection)idxlist_dst;
if (idxsection_src->ndim != idxsection_dst->ndim || if (idxsection_src->ndim != idxsection_dst->ndim ||
idxsection_src->global_start_index != idxsection_dst->global_start_index) idxsection_src->global_start_index != idxsection_dst->global_start_index)
......
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