1
spl0
8y

-1 != 0x-1

Comments
  • 0
    Hmm, what language is that? I suppose that right side should be hexadecimal negative 1. I've never encountered such notation nor I even tried (now for 25+ years) to use negative hex numbers.
  • 0
    @firusvg I think he meant that 0x-1 also equals -1, meaning that "x" is a random variable. 0 * x is always 0.
  • 0
    @LumpBloom7 Well, in that case, there is serious syntax error in line! ;)
  • 0
    very true. It should be something like
    -1 != 0(x) - 1
    or
    -1 != (0*x) -1
  • 0
    @njpugh90 0 == -0
  • 0
  • 0
    x is not a variable
  • 0
    Oops, my bad. I thought you were ranting about some n00b's conditional statement where he would set a stupid condition like that which would not work.😁😁
  • 0
    :-)

    Actually it was a bit of code that had to output a hex number. So it turned the number into hex, and then put 0x on the front of it.

    Worked OK until a -1 turned up!
Add Comment