Cast a float to integer

This fixes warnings with MSVC.
Fix comments to be up to date with current API.
Merge pull request #1630 from zaheerm/fixcomments

Fix comments to be up to date with current API.
Merge pull request #1629 from mstorsjo/msvc-casts

Cast a float to integer
Merge remote-tracking branch 'upstream/master' into travis.android