Bruno Haible <[EMAIL PROTECTED]> writes: > No, it appears correct as it is. For example, if bits==32, it will be > ((1U << 31) - 1) * 2 + 1) > = (0x7fffffffU * 2 + 1) > = 0xffffffffU
You're right, of course. That's what I get for writing without testing. Sorry about the noise. I'll change it to your suggestion. Thanks.