<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 14, 2017 at 2:28 PM, Joerg Sonnenberger <span dir="ltr"><<a href="mailto:joerg@bec.de" target="_blank">joerg@bec.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>On Tue, Feb 14, 2017 at 10:14:36PM -0000, Kostya Serebryany via llvm-commits wrote:<br>
> Author: kcc<br>
> Date: Tue Feb 14 16:14:36 2017<br>
> New Revision: 295112<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=295112&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-pr<wbr>oject?rev=295112&view=rev</a><br>
> Log:<br>
> Use "%zd" format specifier for printing number of testcases executed.<br>
<br>
</span>It should be %zu?<br></blockquote><div><br></div><div>Maybe not. </div><div>In 64-bit case it does not matter because the 64-bit counters will take a millennium to get to 2^63. </div><div>In 32-bit case where we have sizeof(size_t)=4, %zd may actually be less confusing as it will print negative values in case of overflow and more clearly indicate the problem.</div><div><br></div><div>See also <a href="https://reviews.llvm.org/D29941#676629">https://reviews.llvm.org/D29941#676629</a></div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-m_7878139512487284019HOEnZb"><font color="#888888"><br>
Joerg<br>
</font></span></blockquote></div><br></div></div>