[tz] [C/C++ PATCH] Implement -Wshift-negative-value (PR c/65179)

Paul Eggert eggert at cs.ucla.edu
Fri May 8 21:54:38 UTC 2015

On 05/08/2015 09:59 AM, Joseph Myers wrote:
> Paul, although glibc's copy of parts of tzcode is a bit out of date, it
> looks like the currenthttps://github.com/eggert/tz.git  still has the
> problematic code in private.h, relying on left-shifting -1 which has
> undefined behavior in C99/C11 (implementation-defined in C90, as per
> DR#081).
Thanks for reporting that.  I installed the attached patch into the 
experimental tz version on github <https://github.com/eggert/tz>, with 
the intent that this fix propagate into the next tz release and thus 
into glibc etc.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Avoid-left-shift-into-sign-bit-undefined-behavior.patch
Type: text/x-patch
Size: 5178 bytes
Desc: not available
URL: <http://mm.icann.org/pipermail/tz/attachments/20150508/6f2aa597/attachment.bin>

More information about the tz mailing list