]> git.sur5r.net Git - u-boot/commit
dtoc: Make integer division python 3.x safe
authorPaul Burton <paul.burton@imgtec.com>
Tue, 27 Sep 2016 15:03:58 +0000 (16:03 +0100)
committersjg <sjg@chromium.org>
Sun, 9 Oct 2016 15:30:32 +0000 (09:30 -0600)
commit34c38896357db4aae266b14346927da2cd920de6
tree79f12550019f5aab4df1d5f634dee6153a3b847f
parentc4c5f9eefbda7231d0e9703905524faebe71e795
dtoc: Make integer division python 3.x safe

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@imgtec.com>
Acked-by: Simon Glass <sjg@chromium.org>
tools/dtoc/dtoc.py