Linaro toolchain changes
Incorrect (narrowing) assignment. Required for LInaro toolchain