Not that it matters at the moment, but Win64 can address up to 64 processors
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3995 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/jpeg/rrutil.h b/common/jpeg/rrutil.h
index 7ef5cfa..a7137de 100644
--- a/common/jpeg/rrutil.h
+++ b/common/jpeg/rrutil.h
@@ -47,9 +47,9 @@
static __inline int numprocs(void)
{
#ifdef _WIN32
- DWORD_PTR ProcAff, SysAff, i; int count=0;
+ DWORD_PTR ProcAff, SysAff, i; int count=0;
if(!GetProcessAffinityMask(GetCurrentProcess(), &ProcAff, &SysAff)) return(1);
- for(i=0; i<32; i++) if(ProcAff&(1<<i)) count++;
+ for(i=0; i<sizeof(long)*8; i++) if(ProcAff&(1<<i)) count++;
return(count);
#elif defined (__APPLE__)
return(1);