aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 [2]

Author Topic: Compile with icc  (Read 8755 times)

Madcat

  • The One And Only Kitty Developer
  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 37
Re: Compile with icc
« Reply #15 on: February 19, 2004, 10:47:55 PM »

Quote
Originally posted by Kry
That's true. But it should say:

"pointless comparison of unsigned integer with equal or above zero"

comparing a unsigned integer with 0 is not pointless at all.
Actually, if you look closer at it, it IS pointless, because the comparison will always return true. unsigned int can store integer type values from 0 to 65535, thus comparison >=0 will always return true, no matter the value of the variable.

Madcat.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Compile with icc
« Reply #16 on: February 19, 2004, 10:59:34 PM »

Yes. I said, comparison WITH 0 it's pointless. And that's what the error say.

an unsigned it can be > 0 iirc :P
Logged
Pages: 1 [2]