<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 3, 2015 at 4:23 PM, Craig Topper <span dir="ltr"><<a href="mailto:craig.topper@gmail.com" target="_blank">craig.topper@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Why is Size an int? Doesn't Mask.size() return an unsigned value? Is there later use that expects an int?</blockquote></div><br>Heh, yes. See the other thread.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Fundamentally, unsigned isn't the right type here. We do subtraction, sometimes we use them with other integers in a context that has -1 as a meaningful value.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I really wish that the 'size()' methods and such returned some signed type here, but oh well.</div><div class="gmail_extra"><br></div></div>