]> git.baikalelectronics.ru Git - uboot.git/commit
dtoc: Fix widening an int array to an int
authorSimon Glass <sjg@chromium.org>
Thu, 29 Jul 2021 01:23:10 +0000 (19:23 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 1 Aug 2021 15:05:24 +0000 (09:05 -0600)
commitb0f5796517588b912fcf79c2a8f4eb3ddbcce53c
treefe4d76d9f16f939914bca1af05da83b05d055cdd
parent801bf2549f16e9fcf0a2d4f8ffbbe95007e99351
dtoc: Fix widening an int array to an int

An int array can hold a single int so we should not need to do anything
in the widening operation. However due to a quirk in the code, an int[3]
widened with an int produced an int[4]. Fix this and add a test.

Fix a comment typo while we are here.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Tom Rini <trini@konsulko.com>
test/dm/of_platdata.c
tools/dtoc/fdt.py
tools/dtoc/test_dtoc.py
tools/dtoc/test_fdt.py