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