[U-Boot] [PATCH v2 10/10] dtoc: Make integer division python 3.x safe

Simon Glass sjg at chromium.org
Thu Oct 6 04:03:15 CEST 2016


On 27 September 2016 at 09:03, Paul Burton <paul.burton at imgtec.com> wrote:
> If we use the '/' operator then python 3.x will produce a float, and
> refuse to multiply the string sequence in Conv_name_to_c by it with:
>
>     TypeError: can't multiply sequence by non-int of type 'float'
>
> Use the '//' operator instead to enforce that we want integer rather
> than floating point division.
>
> Signed-off-by: Paul Burton <paul.burton at imgtec.com>
> Acked-by: Simon Glass <sjg at chromium.org>
>
> ---
>
> Changes in v2: None
>
>  tools/dtoc/dtoc.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list