Re: msvcp60: Avoid signed-unsigned integer comparisons

2013-03-11 Thread Andrew Talbot
larmbr zhan wrote: > On Sun, Mar 10, 2013 at 5:48 AM, Andrew Talbot > wrote: >> msvcp60: Avoid signed-unsigned integer comparisons. > > > Hi, Andrew Talbot. > > I find that you are working on these "Avoid signed-unsigned integer > comparisons" things

Re: msvcp60: Avoid signed-unsigned integer comparisons

2013-03-10 Thread Max TenEyck Woodbury
On 03/10/2013 07:00 AM, Henri Verbeet wrote: On 10 March 2013 08:20, larmbr zhan wrote: But It behaves different when it is signed or not. According to C Standard, >> - For the signed case, once it overflows, resulting in representing a negative value . Actually, sign

Re: msvcp60: Avoid signed-unsigned integer comparisons

2013-03-10 Thread Henri Verbeet
On 10 March 2013 08:20, larmbr zhan wrote: >But It behaves different when it is signed or not. According to C > Standard, >- For the signed case, once it overflows, resulting in > representing a negative value . Actually, signed overflow behaviour is undefined according to the standard

Re: msvcp60: Avoid signed-unsigned integer comparisons

2013-03-09 Thread larmbr zhan
On Sun, Mar 10, 2013 at 5:48 AM, Andrew Talbot wrote: > msvcp60: Avoid signed-unsigned integer comparisons. Hi, Andrew Talbot. I find that you are working on these "Avoid signed-unsigned integer comparisons" things recently. I DO agree on that using _ unsigned int _ inst