Skip to content
Commit 53a7cf9a authored by Leandro Pereira's avatar Leandro Pereira Committed by Anas Nashif
Browse files

kernel: mem_domain: Fix assertion in k_mem_domain_add_partition()



Without the parenthesis, the code was asserting this expression:

    start + (size > start)

Where it should be this instead:

    (start + size) > start

For a quick sanity check when adding these two unsigned values together.

Signed-off-by: default avatarLeandro Pereira <leandro.pereira@intel.com>
parent dd0d07c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment