Fixed a typo: "==" was intended, not "="

pull/3/head
Daniel Richard G 2013-08-26 17:06:53 -04:00
parent e256956d12
commit 0f7a34ccca
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ static double Bernstein(int k, int deg, double t)
case 1: case 1:
if(k == 0) { if(k == 0) {
return (1 - t); return (1 - t);
} else if(k = 1) { } else if(k == 1) {
return t; return t;
} }
break; break;
@ -65,7 +65,7 @@ double BernsteinDerivative(int k, int deg, double t)
case 1: case 1:
if(k == 0) { if(k == 0) {
return -1; return -1;
} else if(k = 1) { } else if(k == 1) {
return 1; return 1;
} }
break; break;