Fix 2 compilation warnings due to missing type casting.