gdb-6.0post-1.20031117.8

Miloslav Trmac mitr at volny.cz
Wed Mar 24 19:47:41 UTC 2004


On Wed, Mar 24, 2004 at 11:44:59AM -0800, Mark Fonnemann wrote:
> (gdb) p ~0
> $6 = -1
> 
> last i knew the 1's complement of 0 equaled 1. what is going on here?
Your idea of 1's complement.
E.g. ~0000 = 1111 = -1 mod 2**4.

	Mirek





More information about the fedora-test-list mailing list