in reply to Re^5: -1 from hex ffffffffffffffff ?
in thread -1 from hex ffffffffffffffff ?

Yes, 03E8 may be stored as bytes 03 E8 or as bytes E8 03, but it's silly to claim that 03E8 == E803. Hex is a numerical representation. You can't concatenate numbers together and claim you still have the same number.

As you pointed out yourself, the OP said hex string. He said nothing of about a string of bytes and gave no indication that he was talking about a string of bytes (such as by separating them by spaces).

Replies are listed 'Best First'.
Re^7: -1 from hex ffffffffffffffff ?
by almut (Canon) on Oct 02, 2009 at 19:46 UTC
    You can't concatenate numbers together

    I think it's pretty common to write a hex string as a concatenated sequence of hex bytes — even Perl does it:

    $ perl -e"print unpack('H*', 'foobar')" 666f6f626172

    Think of that foobar as a sequence of bytes in memory representing a little-endian number...

      even Perl does it:

      You misquoted me. Perl makes no claim that string of bytes 666f6f626172 is 7261626f6f66