<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 13, 2017 at 3:36 AM, Ma0 <span dir="ltr"><<a href="mailto:mateuszb@poczta.onet.pl" target="_blank">mateuszb@poczta.onet.pl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Ma0 <<a href="mailto:mateuszb@poczta.onet.pl">mateuszb@poczta.onet.pl</a>><br>
# Date 1507845626 -7200<br>
# Fri Oct 13 00:00:26 2017 +0200<br>
# Node ID 600c3dbe372ad82f3e92800fbaff63<wbr>492958eb00<br>
# Parent 0e168bdeb48b3d57d896d3823e2efb<wbr>2bf69d4b26<br>
silence MSVC warning C4334<br></blockquote><div><br></div><div>Pushed to default branch</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits<br>
<br>
diff -r 0e168bdeb48b -r 600c3dbe372a source/encoder/analysis.cpp<br>
--- a/source/encoder/analysis.cpp Mon Oct 09 12:34:25 2017 +0530<br>
+++ b/source/encoder/analysis.cpp Fri Oct 13 00:00:26 2017 +0200<br>
@@ -309,8 +309,8 @@<br>
<br>
if (ctu.m_predMode[puabsPartIdx + absPartIdx] == MODE_SKIP)<br>
{<br>
- ctu.m_encData->m_frameStats.<wbr>cntSkipPu[depth] += (uint64_t)(1 << shift);<br>
- ctu.m_encData->m_frameStats.<wbr>totalPu[depth] += (uint64_t)(1 << shift);<br>
+ ctu.m_encData->m_frameStats.<wbr>cntSkipPu[depth] += 1ULL << shift;<br>
+ ctu.m_encData->m_frameStats.<wbr>totalPu[depth] += 1ULL << shift;<br>
}<br>
else if (ctu.m_predMode[puabsPartIdx + absPartIdx] == MODE_INTRA)<br>
{<br>
@@ -321,14 +321,14 @@<br>
}<br>
else<br>
{<br>
- ctu.m_encData->m_frameStats.<wbr>cntIntraPu[depth] += (uint64_t)(1 << shift);<br>
- ctu.m_encData->m_frameStats.<wbr>totalPu[depth] += (uint64_t)(1 << shift);<br>
+ ctu.m_encData->m_frameStats.<wbr>cntIntraPu[depth] += 1ULL << shift;<br>
+ ctu.m_encData->m_frameStats.<wbr>totalPu[depth] += 1ULL << shift;<br>
}<br>
}<br>
else if (mode == 3)<br>
{<br>
- ctu.m_encData->m_frameStats.<wbr>cntAmp[depth] += (uint64_t)(1 << shift);<br>
- ctu.m_encData->m_frameStats.<wbr>totalPu[depth] += (uint64_t)(1 << shift);<br>
+ ctu.m_encData->m_frameStats.<wbr>cntAmp[depth] += 1ULL << shift;<br>
+ ctu.m_encData->m_frameStats.<wbr>totalPu[depth] += 1ULL << shift;<br>
break;<br>
}<br>
else<br>
______________________________<wbr>_________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/<wbr>listinfo/x265-devel</a><br>
</blockquote></div><br></div></div>