st/draw: silence Mingw warning in pointer_to_offset()

Fixes "warning: cast from pointer to integer of different size" for
64-bit builds.
This commit is contained in:
Brian Paul 2013-10-29 09:48:32 -06:00
parent b16b3c8703
commit 3c11bc6a5a

View file

@ -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);
}