Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers/i2c/meson: fix undefined behaviour
In `i2c_load_tokens` we're bit-shifting the value of data by potentially more than 8-bits which is undefined behaviour in C if data is uint8_t. To fix this, we can just make data a uint32_t which makes sense since wdata0 is also uint32_t. Signed-off-by: Ivan-Velickovic <i.velickovic@unsw.edu.au>
- Loading branch information