Skip to content
Commit e144cafe authored by Simon Glass's avatar Simon Glass
Browse files

dtoc: Fix widening of int to bytes



At present an integer is converted to bytes incorrectly. The whole 32-bit
integer is inserted as the first element of the byte array, and the other
three bytes are skipped. This was not noticed because the unit test did
not check it, and the functional test was checking for wrong values.

Update the code to handle this as a special case. Add one more test to
cover all code paths.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent abb9cd30
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment