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

Merge declaration and initialization.

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