>>> On 20.01.17 at 16:37, <andrew.coop...@citrix.com> wrote:
> Travis reports that Clang objects to integer truncation during assignments to
> a bitfield:
> 
>   ./x86_emulate/x86_emulate.c:6150:19: error: implicit truncation from 'int'
>   to bitfield changes value from -1 to 15 
> [-Werror,-Wbitfield-constant-conversion]
>           pxop->reg = ~0; /* rAX */
>                     ^ ~~
> 
> Use 0xf instead.
> 
> Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>

Reluctantly
Reviewed-by: Jan Beulich <jbeul...@suse.com>
as I think the code was just fine before.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to