Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gnrc/rpl: fix incorrect addition overflow check
Checking for overflow of integer addition by comparing against one of the arguments of the addition does not work when the result of the addition is automatically promoted to a larger type. Fix by using an explicit cast to make sure that the result of the addition is not implicitly converted to a larger type.
- Loading branch information