From 80b3dfa7040287a174657e6e4ae6fd54e9434ef9 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 4 Nov 2012 16:43:44 -0700 Subject: st/mesa: add int cast to silence warning MSVC warns that negating an unsigned value yields an unsigned value. Reviewed-by: Jose Fonseca --- src/mesa/state_tracker/st_cb_fbo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/state_tracker/st_cb_fbo.c') diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c index 882fb372b05..adee00bd2fc 100644 --- a/src/mesa/state_tracker/st_cb_fbo.c +++ b/src/mesa/state_tracker/st_cb_fbo.c @@ -750,7 +750,7 @@ st_MapRenderbuffer(struct gl_context *ctx, usage, x, y2, w, h, &strb->transfer); if (map) { if (invert) { - *rowStrideOut = -strb->transfer->stride; + *rowStrideOut = -(int) strb->transfer->stride; map += (h - 1) * strb->transfer->stride; } else { -- cgit v1.2.3