ghex calculates the multi-byte values not on the selection, but on the
cursor and the following bytes... so for a 16-bit value, you should just
select the first byte of the pair. In your screenshot, you have offset
0xC selected, so it will use the bytes in offsets 0xC and 0xD to
calculate the 16-bit number, which is 0x0202, or 514, as it shows. If
you move the cursor to offset 0xB, it would show 512 as expected.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/519263

Title:
  Calculates 16 bit values incorrectly

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to