qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH-for-5.0?] decodetree: Use Python3 floor division operator


From: Peter Maydell
Subject: Re: [PATCH-for-5.0?] decodetree: Use Python3 floor division operator
Date: Mon, 30 Mar 2020 13:54:42 +0100

On Mon, 30 Mar 2020 at 13:14, Philippe Mathieu-Daudé <address@hidden> wrote:
>
> This script started using Python2, where the 'classic' division
> operator returns the floor result. In commit 3d004a371 we started
> to use Python3, where the division operator returns the float
> result ('true division').
> To keep the same behavior, use the 'floor division' operator "//"
> which returns the floor result.
>
> Fixes: 3d004a371
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
> ---
> We didn't notice it because only the RX port (which uses the
> --varinsnwidth option, and got merged very recently) triggers
> these problems.
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>

Ouch. That's a painfully hard to detect incompatibility
between 2 and 3 :-(

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]