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 <s...@chromium.org>
Reported-by: Tom Rini <tr...@konsulko.com>
---

 test/dm/of_platdata.c   |  4 +---
 tools/dtoc/fdt.py       | 15 ++++++++-------
 tools/dtoc/test_dtoc.py |  6 +++---
 tools/dtoc/test_fdt.py  | 11 ++++++++++-
 4 files changed, 22 insertions(+), 14 deletions(-)

Applied to u-boot-dm, thanks!

Reply via email to