[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] builtin.c:warning: shifting a negative signed value is un
From: |
Sergey Tselikh |
Subject: |
Re: [bug-gawk] builtin.c:warning: shifting a negative signed value is undefined |
Date: |
Sat, 19 Nov 2016 17:15:23 +0000 |
It is quite possible, that ``~ (t) 0'' in that macro should be ``(t) 1''.
On two's complement (and ones' complement) systems a signed integer has minimum value when its most significant bit is set to 1 and rest of bits are set to 0. Only one bit with value 1 is needed on the left side of ``<<'' operation.
builtin-c-not0-to-1.patch
Description: Binary data