aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/matrix.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-04-05 03:05:17 +0000
committerBrian Paul <[email protected]>2006-04-05 03:05:17 +0000
commit28b014ee256290eb0494b967e40c475c0c895f57 (patch)
tree9196b0a5fc1fbdd151ac80335e0517771c960998 /src/mesa/main/matrix.c
parent027bb77e02cf38c553d1396a348783ddc1b7913c (diff)
Silence minor compiler warnings (-Wextra).
Diffstat (limited to 'src/mesa/main/matrix.c')
-rw-r--r--src/mesa/main/matrix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/matrix.c b/src/mesa/main/matrix.c
index ecd3732c933..5ff250a0c79 100644
--- a/src/mesa/main/matrix.c
+++ b/src/mesa/main/matrix.c
@@ -576,8 +576,8 @@ _mesa_set_viewport( GLcontext *ctx, GLint x, GLint y,
}
/* clamp width and height to the implementation dependent range */
- width = CLAMP(width, 1, ctx->Const.MaxViewportWidth);
- height = CLAMP(height, 1, ctx->Const.MaxViewportHeight);
+ width = CLAMP(width, 1, (GLsizei) ctx->Const.MaxViewportWidth);
+ height = CLAMP(height, 1, (GLsizei) ctx->Const.MaxViewportHeight);
ctx->Viewport.X = x;
ctx->Viewport.Width = width;