Fix bug where equality was used instead of assignment.
git-svn-id: http://skia.googlecode.com/svn/trunk@1767 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/src/GrPathUtils.cpp b/gpu/src/GrPathUtils.cpp
index e78bc54..84b9097 100644
--- a/gpu/src/GrPathUtils.cpp
+++ b/gpu/src/GrPathUtils.cpp
@@ -23,7 +23,7 @@
uint32_t GrPathUtils::quadraticPointCount(const GrPoint points[],
GrScalar tol) {
if (tol < gMinCurveTol) {
- tol == gMinCurveTol;
+ tol = gMinCurveTol;
}
GrAssert(tol > 0);
@@ -75,7 +75,7 @@
uint32_t GrPathUtils::cubicPointCount(const GrPoint points[],
GrScalar tol) {
if (tol < gMinCurveTol) {
- tol == gMinCurveTol;
+ tol = gMinCurveTol;
}
GrAssert(tol > 0);
@@ -131,7 +131,7 @@
int GrPathUtils::worstCasePointCount(const GrPath& path, int* subpaths,
GrScalar tol) {
if (tol < gMinCurveTol) {
- tol == gMinCurveTol;
+ tol = gMinCurveTol;
}
GrAssert(tol > 0);