use explicit casts
This commit is contained in:
parent
f2936d1c2d
commit
86617eccb1
@ -32,8 +32,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
uint64_t HilbertCode::operator()(const FixedPointCoordinate ¤t_coordinate) const
|
uint64_t HilbertCode::operator()(const FixedPointCoordinate ¤t_coordinate) const
|
||||||
{
|
{
|
||||||
unsigned location[2];
|
unsigned location[2];
|
||||||
location[0] = current_coordinate.lat + (90 * COORDINATE_PRECISION);
|
location[0] = current_coordinate.lat + static_cast<int>(90 * COORDINATE_PRECISION);
|
||||||
location[1] = current_coordinate.lon + (180 * COORDINATE_PRECISION);
|
location[1] = current_coordinate.lon + static_cast<int>(180 * COORDINATE_PRECISION);
|
||||||
|
|
||||||
TransposeCoordinate(location);
|
TransposeCoordinate(location);
|
||||||
return BitInterleaving(location[0], location[1]);
|
return BitInterleaving(location[0], location[1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user