From 7b9fe820a3fba3849864682fbb1cb512362934ab Mon Sep 17 00:00:00 2001 From: Karl Schultz Date: Tue, 18 Sep 2001 23:06:14 +0000 Subject: more compiler warning fixes --- src/mesa/swrast/s_aalinetemp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/swrast/s_aalinetemp.h') diff --git a/src/mesa/swrast/s_aalinetemp.h b/src/mesa/swrast/s_aalinetemp.h index bcfd22f019f..5808245948a 100644 --- a/src/mesa/swrast/s_aalinetemp.h +++ b/src/mesa/swrast/s_aalinetemp.h @@ -1,4 +1,4 @@ -/* $Id: s_aalinetemp.h,v 1.12 2001/05/21 18:13:43 brianp Exp $ */ +/* $Id: s_aalinetemp.h,v 1.13 2001/09/18 23:06:14 kschultz Exp $ */ /* * Mesa 3-D graphics library @@ -159,7 +159,7 @@ NAME(line)(GLcontext *ctx, const SWvertex *v0, const SWvertex *v1) line.y1 = v1->win[1]; line.dx = line.x1 - line.x0; line.dy = line.y1 - line.y0; - line.len = sqrt(line.dx * line.dx + line.dy * line.dy); + line.len = (GLfloat) sqrt(line.dx * line.dx + line.dy * line.dy); line.halfWidth = 0.5F * ctx->Line.Width; if (line.len == 0.0) -- cgit v1.2.3