Skip to content
Commit b061ef39 authored by Trent Piepho's avatar Trent Piepho Committed by Simon Glass
Browse files

core: ofnode: Have ofnode_read_u32_default return a u32



It was returning an int, which doesn't work if the u32 it is reading,
or the default value, will overflow a signed int.

While it could be made to work, when using a C standard/compiler where
casting negative signed values to unsigned has a defined behavior,
combined with careful casting, it seems obvious one is meant to use
ofnode_read_s32_default() with signed values.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: default avatarTrent Piepho <tpiepho@impinj.com>
parent 347ea0b6
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