Change read_bit() to return 0 or -1UL, rather than 0 or 1.