mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Changed some code found by Clang Tidy and Coverity
This commit is contained in:
parent
2e065d8ad0
commit
50be65bf43
25 changed files with 142 additions and 155 deletions
|
@ -102,7 +102,7 @@ Vector<Vector2> expand(const Vector<Vector2> &points, const Rect2i &rect, float
|
|||
|
||||
int lasti = p2->Contour.size() - 1;
|
||||
Vector2 prev = Vector2(p2->Contour[lasti].X / PRECISION, p2->Contour[lasti].Y / PRECISION);
|
||||
for (unsigned int i = 0; i < p2->Contour.size(); i++) {
|
||||
for (uint64_t i = 0; i < p2->Contour.size(); i++) {
|
||||
|
||||
Vector2 cur = Vector2(p2->Contour[i].X / PRECISION, p2->Contour[i].Y / PRECISION);
|
||||
if (cur.distance_to(prev) > 0.5) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue