------- Comment #1 from anton at samba dot org 2008-10-14 11:59 ------- Alan Modra points out the cast is not required and removing it does fix the issue.
BTW -Wstrict-aliasing (or -Wstrict-aliasing=2) doesn't warn about the code. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37824