From 12ad3b19110b8784d7aa3771cf49e7543222110f Mon Sep 17 00:00:00 2001 From: Jim Cownie Date: Wed, 3 Sep 2014 10:51:02 +0000 Subject: [PATCH] Fix a problem on Windows machines with >32 processors llvm-svn: 217024 --- openmp/runtime/src/z_Windows_NT_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmp/runtime/src/z_Windows_NT_util.c b/openmp/runtime/src/z_Windows_NT_util.c index ba59110e8b82..97e7fd20222b 100644 --- a/openmp/runtime/src/z_Windows_NT_util.c +++ b/openmp/runtime/src/z_Windows_NT_util.c @@ -754,7 +754,7 @@ __kmp_affinity_bind_thread( int proc ) KMP_DEBUG_ASSERT((proc >= 0) && (proc < (__kmp_num_proc_groups * CHAR_BIT * sizeof(DWORD_PTR)))); ga.group = proc / (CHAR_BIT * sizeof(DWORD_PTR)); - ga.mask = 1 << (proc % (CHAR_BIT * sizeof(DWORD_PTR))); + ga.mask = (unsigned long long)1 << (proc % (CHAR_BIT * sizeof(DWORD_PTR))); ga.reserved[0] = ga.reserved[1] = ga.reserved[2] = 0; KMP_DEBUG_ASSERT(__kmp_SetThreadGroupAffinity != NULL);