Fix some warning about converting double to integer types.

Change-Id: Id9de98664d766ff54066379e849356022621ac12
Merge topic 'SupressSomeWarnings' into next

576082c Fix some warning about converting double to integer types.