Skip to content

Commit 1fc6992

Browse files
author
ndenoyelle
committed
fix visualstudio build 2
1 parent 02327b3 commit 1fc6992

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hwloc/distrib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct hwloc_distrib_iterator{
3131
};
3232

3333
static size_t* range(const size_t n){
34-
size_t* i,r = malloc(n*sizeof(*r));
34+
size_t i,*r = malloc(n*sizeof(*r));
3535

3636
if(r==NULL)
3737
return NULL;
@@ -41,7 +41,7 @@ static size_t* range(const size_t n){
4141
}
4242

4343
static size_t* reversed_range(const size_t n){
44-
size_t* i,r = malloc(n*sizeof(*r));
44+
size_t i,*r = malloc(n*sizeof(*r));
4545

4646
if(r==NULL)
4747
return NULL;

0 commit comments

Comments
 (0)