On 27/04/13 11:15, Luiz Angelo Daros de Luca wrote:

The correct output would be 2273342085 and not 18446744071687926405. Comparing both, the MSB 32bit of first_sector becomes all 1.

2273342085           = 0x0000000087807285
18446744071687926405 = 0xFFFFFFFF87807285

Any idea of why? Maybe this has something to do with target/linux/ar71xx/patches-3.3/902-unaligned_access_hacks.patch?


Looks very much like sign-extension when converting a 32-bit negative value to 64-bit.
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to