commit | ed7b03420b52d51bbceb58f71460cc201f77c66e | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Wed Feb 12 10:29:46 2020 -0600 |
committer | Patrick Williams <patrick@stwcx.xyz> | Wed Feb 12 10:29:49 2020 -0600 |
tree | 507356bc7ae8844190c9d8cd16dd0f35b22ee9a3 | |
parent | 7f4c548dbf7df0f77b9b4672278d56b846f02ccc [diff] |
zone: remove static_cast in float-to-int conversion It is recommended to use library functions for conversions between floating point and integers. Replace static_cast (which performs truncation) with lround (which rounds). Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ied6633869b685d63abdbdaa249332e69b18b439b