diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-26 03:04:44 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-26 03:09:15 +0300 |
commit | 8a68f4f80814a28d68055a0ae0b22a7efe1c2619 (patch) | |
tree | c89d4c3343836b0b8321be1beb55d7b547a6d6a3 /source/blender/freestyle/intern/view_map/BoxGrid.cpp | |
parent | 15f3cf7f8f956a6372b6a99788b622946ba3d1e5 (diff) |
Cleanup: replace unsigned with uint, use function style casts for C++
Diffstat (limited to 'source/blender/freestyle/intern/view_map/BoxGrid.cpp')
-rw-r--r-- | source/blender/freestyle/intern/view_map/BoxGrid.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/freestyle/intern/view_map/BoxGrid.cpp b/source/blender/freestyle/intern/view_map/BoxGrid.cpp index 4c79d6c2fa1..36afb0119a2 100644 --- a/source/blender/freestyle/intern/view_map/BoxGrid.cpp +++ b/source/blender/freestyle/intern/view_map/BoxGrid.cpp @@ -186,10 +186,10 @@ void BoxGrid::reorganizeCells() } } -void BoxGrid::getCellCoordinates(const Vec3r &point, unsigned &x, unsigned &y) +void BoxGrid::getCellCoordinates(const Vec3r &point, uint &x, uint &y) { - x = min(_cellsX - 1, (unsigned)floor(max(double(0.0f), point[0] - _cellOrigin[0]) / _cellSize)); - y = min(_cellsY - 1, (unsigned)floor(max(double(0.0f), point[1] - _cellOrigin[1]) / _cellSize)); + x = min(_cellsX - 1, uint(floor(max(double(0.0f), point[0] - _cellOrigin[0]) / _cellSize))); + y = min(_cellsY - 1, uint(floor(max(double(0.0f), point[1] - _cellOrigin[1]) / _cellSize))); } BoxGrid::Cell *BoxGrid::findCell(const Vec3r &point) |