[x265] [PATCH 1 of 2] avoid warning about compare between signed and unsigned

Min Chen chenm003 at 163.com
Fri Mar 28 02:15:06 CET 2014


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1395969280 25200
# Node ID c36f82263eae3f2953f2eb2bdc386077af2ae3cd
# Parent  8e0c2d24fc45aecc17c3d8c131c1a0d8a67e342a
avoid warning about compare between signed and unsigned

diff -r 8e0c2d24fc45 -r c36f82263eae source/Lib/TLibCommon/TComTrQuant.h
--- a/source/Lib/TLibCommon/TComTrQuant.h	Wed Mar 26 22:39:01 2014 -0500
+++ b/source/Lib/TLibCommon/TComTrQuant.h	Thu Mar 27 18:14:40 2014 -0700
@@ -192,7 +192,7 @@
         else
         {
             result.firstSignificanceMapContext = (ctype ? 12 : 21);
-            assert(significanceMapContextSetStart[ctype][CONTEXT_TYPE_NxN] == (ctype ? 12 : 21));
+            assert(significanceMapContextSetStart[ctype][CONTEXT_TYPE_NxN] == (uint32_t)(ctype ? 12 : 21));
         }
     }
     estBitsSbacStruct* m_estBitsSbac;



More information about the x265-devel mailing list