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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user