Don wrote:

length is uint
byte[].length can exceed 2GB, and code is correct when it does
uint - uint is an int (or even, can implicitly convert to int)

As far as I can tell, at least one of these has to go.

This is why I never understood ptrdiff_t in C. Having to choose between a signed value and narrower range vs. unsigned and sufficient range just stinks.


Sean

Reply via email to