[x265-commits] [x265] threadpool: fix 'enumeral and non-enumeral type in condit...

Steve Borho steve at borho.org
Tue Apr 21 20:43:01 CEST 2015


details:   http://hg.videolan.org/x265/rev/c135c117ffb0
branches:  
changeset: 10245:c135c117ffb0
user:      Steve Borho <steve at borho.org>
date:      Tue Apr 21 13:42:36 2015 -0500
description:
threadpool: fix 'enumeral and non-enumeral type in conditional ...' warnings

diffstat:

 source/common/threadpool.cpp |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 1a4cd3067f77 -r c135c117ffb0 source/common/threadpool.cpp
--- a/source/common/threadpool.cpp	Tue Apr 21 13:28:37 2015 -0500
+++ b/source/common/threadpool.cpp	Tue Apr 21 13:42:36 2015 -0500
@@ -244,7 +244,7 @@ ThreadPool* ThreadPool::allocThreadPools
 #if _WIN32_WINNT >= 0x0601
         UCHAR node;
         if (GetNumaProcessorNode((UCHAR)i, &node))
-            cpusPerNode[X265_MIN(node, MAX_NODE_NUM)]++;
+            cpusPerNode[X265_MIN(node, (UCHAR)MAX_NODE_NUM)]++;
         else
 #elif HAVE_LIBNUMA
         if (bNumaSupport >= 0)


More information about the x265-commits mailing list