Skip to content
Snippets Groups Projects
Commit 111f2eeb authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Shorten expression.

parent c7acd11d
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,7 @@ void check_idxlist(Xt_idxlist idxlist, Xt_int const * ref_indices,
if (num_indices != ref_num_indices)
PUT_ERR("wrong number of indices in idxlist\n");
size_t ref_num_indices_ = ref_num_indices > 0 ? (size_t)ref_num_indices : (size_t)1;
size_t ref_num_indices_ = (size_t)(ref_num_indices > 0 ? ref_num_indices : 1);
Xt_int indices[ref_num_indices_];
Xt_int index;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment