summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-10-29 09:48:32 -0600
committerBrian Paul <[email protected]>2013-10-31 08:21:58 -0600
commit3c11bc6a5a8416b62cdc353feebf6c210db27c4d (patch)
tree1a1d4f13200485cbe4f723a0b5fad71545cc3cd4 /src/mesa/state_tracker
parentb16b3c8703f198ca0f025b730d582600df79c19c (diff)
st/draw: silence Mingw warning in pointer_to_offset()
Fixes "warning: cast from pointer to integer of different size" for 64-bit builds.
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_draw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_draw.h b/src/mesa/state_tracker/st_draw.h
index 3313fc8c77f..394473b20d5 100644
--- a/src/mesa/state_tracker/st_draw.h
+++ b/src/mesa/state_tracker/st_draw.h
@@ -77,7 +77,7 @@ st_feedback_draw_vbo(struct gl_context *ctx,
static INLINE unsigned
pointer_to_offset(const void *ptr)
{
- return (unsigned) (((unsigned long) ptr) & 0xffffffffUL);
+ return (unsigned) (((GLsizeiptr) ptr) & 0xffffffffUL);
}