Re: [Qemu-devel] [PATCH for-2.4] spapr_drc: fix clang -fsanitizer=shift warning

2015-09-02 Thread David Gibson
On Tue, Jul 21, 2015 at 06:40:16PM -0500, Michael Roth wrote: > Current code for generating DRC type mask generates the following warning with > clang -fsanitizer=undefined -fsanitizer=shift: > > runtime error: left shift of negative value -1 > > Fix this by calculating the mask like a sane per

[Qemu-devel] [PATCH for-2.4] spapr_drc: fix clang -fsanitizer=shift warning

2015-07-21 Thread Michael Roth
Current code for generating DRC type mask generates the following warning with clang -fsanitizer=undefined -fsanitizer=shift: runtime error: left shift of negative value -1 Fix this by calculating the mask like a sane person would. Signed-off-by: Michael Roth --- hw/ppc/spapr_drc.c | 2 +- 1