Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-09-26 03:04:44 +0300
committerCampbell Barton <campbell@blender.org>2022-09-26 03:09:15 +0300
commit8a68f4f80814a28d68055a0ae0b22a7efe1c2619 (patch)
treec89d4c3343836b0b8321be1beb55d7b547a6d6a3 /source/blender/freestyle/intern/view_map/BoxGrid.cpp
parent15f3cf7f8f956a6372b6a99788b622946ba3d1e5 (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.cpp6
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)