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

2016-09-26 Thread Simon Glass
On 26 September 2016 at 08:30, Paul Burton 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

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

2016-09-26 Thread Paul Burton
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