Fix C type convert warning.

Signed-off-by: Xiongfei(Alex) Guo <xfguo@credosemi.com>