From 0f7a34ccca32977be3f68b90d4a9c17ccbe3b47e Mon Sep 17 00:00:00 2001 From: Daniel Richard G Date: Mon, 26 Aug 2013 17:06:53 -0400 Subject: [PATCH] Fixed a typo: "==" was intended, not "=" --- srf/ratpoly.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srf/ratpoly.cpp b/srf/ratpoly.cpp index 4bc4d04c..d443719d 100644 --- a/srf/ratpoly.cpp +++ b/srf/ratpoly.cpp @@ -25,7 +25,7 @@ static double Bernstein(int k, int deg, double t) case 1: if(k == 0) { return (1 - t); - } else if(k = 1) { + } else if(k == 1) { return t; } break; @@ -65,7 +65,7 @@ double BernsteinDerivative(int k, int deg, double t) case 1: if(k == 0) { return -1; - } else if(k = 1) { + } else if(k == 1) { return 1; } break;