Jan Engelhardt wrote: > >> > > So what type is the result of "unsigned int - size_t"? > >> > size_t, because it is of higher rank. > >> How come it has higher rank? > >I'd appreciate an answer to this. "because" isn't it. > > "because it is" is the answer - > the standards body defined it to be that way.
It's not clear to me that this is the case. > https://www.securecoding.cert.org/confluence/display/seccode/INT02-C.+Understand+integer+conversion+rules Right, this is the blog post I referenced in my previous email. I forgot to include the link. Thanks for sending it. This post makes a reference to the standard and seems to repeat the rank rules, but it doesn't seem to me that any of the rules apply to the case at hand? //Peter
