Skip to content

Commit 5522fc4

Browse files
another fix for MS cl compiler
1 parent ee9fcd6 commit 5522fc4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

GraphBLAS/Source/ij/GB_ijxvector.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,12 +340,13 @@ GrB_Info GB_ijxvector
340340
int nthreads_max = GB_Context_nthreads_max ( ) ;
341341
double chunk = GB_Context_chunk ( ) ;
342342
int nthreads = GB_nthreads (n, chunk, nthreads_max) ;
343+
int64_t k ;
343344
if (I_type == GrB_UINT32)
344345
{
345346
uint32_t *I = (uint32_t *) (*I_handle) ;
346347
#pragma omp parallel for num_threads(nthreads) \
347348
schedule(static)
348-
for (int64_t k = 0 ; k < n ; k++)
349+
for (k = 0 ; k < n ; k++)
349350
{
350351
I [k] = k ;
351352
}
@@ -355,7 +356,7 @@ GrB_Info GB_ijxvector
355356
uint64_t *I = (uint64_t *) (*I_handle) ;
356357
#pragma omp parallel for num_threads(nthreads) \
357358
schedule(static)
358-
for (int64_t k = 0 ; k < n ; k++)
359+
for (k = 0 ; k < n ; k++)
359360
{
360361
I [k] = k ;
361362
}

0 commit comments

Comments
 (0)