Reply to post: Re: Unsigned....

'I bet Russian hackers weren't expecting their target to suck so epically hard as this'

Jimmy2Cows Silver badge

Re: Unsigned....

Would help to have a u++, rather than u-- :-). Also, such counters are often used to index arrays, which start at 0...

WHOOSH!

Assuming "u" is unsigned, I believe you may have missed the rapier-like subtlety of decrementing an unsigned integer below zero...

That u < 200 will actually work. Sure, there will be 101 iterations of the loop before it exits. And it looks shit. And will confuse anyone reading it. But logically it will still work. Unless "u" is signed, then it's a much longer count.

Doesn't make it suck less hard though...

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon