<p>Personally, I like this patch as it had the test following what is allowed by the standard, and enumerating those options explicitly rather than just comparing against the libc sprintf output.</p>
<div class="gmail_quote">On Feb 19, 2012 1:40 AM, "Jeffrey Yasskin" <<a href="mailto:jyasskin@gmail.com">jyasskin@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Another way to fix this would be to do the sprintf and compare against<br>
that, or to use an explicit integer reinterpret_casted to void*, but<br>
it doesn't seem too bad to add an extra option for glibc's output.<br>
<br>
Jeffrey<br>
<br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div>