Skip to content
Commit d7241b0a authored by Mykyta Poturai's avatar Mykyta Poturai Committed by Fabio Baltieri
Browse files

fs: littlefs: use uintptr_t instead of int for dev_id



dev_id is used as a pointer at the end of the call chain, so passing it
as an int makes no sense and can cause crashes if the pointer and int
types have different sizes. For example, if we have 64-bit pointers on
a board, the higher part of dev_id will be removed due to an type cast.

Signed-off-by: default avatarMykyta Poturai <mykyta_poturai@epam.com>
Signed-off-by: default avatarMykola Kvach <mykola_kvach@epam.com>
parent 74d08d69
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment