Skip to content

Commit c8c41f7

Browse files
author
ndenoyelle
committed
fix visualstudio build 7
1 parent 4b77e95 commit c8c41f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hwloc/distrib.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ hwloc_distrib_root_levels(hwloc_topology_t topology,
122122
qsort(levels, n_types, sizeof(*levels), hwloc_distrib_level_cmp_depth);
123123

124124
// Walk from top to bottom and set arity to the maximum arity below root field.
125-
126125
parent=root;
127126
for (i=0; i<n_types; i++){
128127
while (parent) {
@@ -208,7 +207,9 @@ hwloc_distrib_iterator_round_robin(hwloc_topology_t topology,
208207
const hwloc_obj_type_t type,
209208
const unsigned long flags){
210209
hwloc_obj_t root = hwloc_get_obj_by_depth(topology, 0, 0);
211-
struct hwloc_distrib_iterator *it = malloc(sizeof(*it) + sizeof(hwloc_obj_t) + sizeof(struct hwloc_distrib_level*));
210+
struct hwloc_distrib_iterator *it;
211+
212+
it = malloc(sizeof(*it) + sizeof(hwloc_obj_t) + sizeof(struct hwloc_distrib_level*));
212213
if(it == NULL)
213214
return NULL;
214215

0 commit comments

Comments
 (0)