From 417ed16a88bd6c695e9792c2023e3f1737ee1e64 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 8 Mar 2001 17:15:01 +0000 Subject: changed bincoeff var to GLfloat, fixes bug introduced in previous check-in --- src/mesa/math/m_eval.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/mesa/math/m_eval.c b/src/mesa/math/m_eval.c index c182bbff01b..adf5b19fec8 100644 --- a/src/mesa/math/m_eval.c +++ b/src/mesa/math/m_eval.c @@ -1,4 +1,4 @@ -/* $Id: m_eval.c,v 1.2 2001/03/07 05:06:12 brianp Exp $ */ +/* $Id: m_eval.c,v 1.3 2001/03/08 17:15:01 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -75,12 +75,12 @@ void _math_horner_bezier_curve(const GLfloat *cp, GLfloat *out, GLfloat t, GLuint dim, GLuint order) { - GLfloat s, powert; - GLuint i, k, bincoeff; + GLfloat s, powert, bincoeff; + GLuint i, k; if(order >= 2) { - bincoeff = order-1; + bincoeff = (GLfloat) (order - 1); s = 1.0-t; for(k=0; k= 2) { - GLfloat s, poweru; - GLuint j, k, bincoeff; + GLfloat s, poweru, bincoeff; + GLuint j, k; /* Compute the control polygon for the surface-curve in u-direction */ for(j=0; j