[x265] [PATCH] fix build warning in quant.cpp

Min Chen chenm003 at 163.com
Sun Apr 19 10:44:11 CEST 2015


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1429433044 -28800
# Node ID ecf92b3cfb11a6202c35a1fde44f18aa961ce519
# Parent  bdee7c3b7853d7860cb15d649da4dc61d59a428c
fix build warning in quant.cpp
---
 source/common/quant.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff -r bdee7c3b7853 -r ecf92b3cfb11 source/common/quant.cpp
--- a/source/common/quant.cpp	Sun Apr 19 16:43:49 2015 +0800
+++ b/source/common/quant.cpp	Sun Apr 19 16:44:04 2015 +0800
@@ -938,7 +938,7 @@
             cgRdStats.sigCost += costSig[scanPos];
         } /* end for (scanPosinCG) */
 
-        X265_CHECK((cgScanPos << MLS_CG_SIZE) == scanPos, "scanPos mistake\n");
+        X265_CHECK((cgScanPos << MLS_CG_SIZE) == (int)scanPos, "scanPos mistake\n");
         cgRdStats.sigCost0 = costSig[scanPos];
 
         costCoeffGroupSig[cgScanPos] = 0;



More information about the x265-devel mailing list