[Mesa-dev] [PATCH 05/18] st/mesa: add int cast to silence warning
Brian Paul
brianp at vmware.com
Sun Nov 4 15:43:50 PST 2012
MSVC warns that negating an unsigned value yields an unsigned value.
---
src/mesa/state_tracker/st_cb_fbo.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c
index 882fb37..adee00b 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 {
--
1.7.3.4
More information about the mesa-dev
mailing list