Searched hist:"34 c38896357db4aae266b14346927da2cd920de6" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/tools/dtoc/ |
| H A D | dtoc.py | 34c38896357db4aae266b14346927da2cd920de6 Tue Sep 27 15:03:58 UTC 2016 Paul Burton <paul.burton@imgtec.com> 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>
|