From 3c11bc6a5a8416b62cdc353feebf6c210db27c4d Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 29 Oct 2013 09:48:32 -0600 Subject: st/draw: silence Mingw warning in pointer_to_offset() Fixes "warning: cast from pointer to integer of different size" for 64-bit builds. --- src/mesa/state_tracker/st_draw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/state_tracker') 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); } -- cgit v1.2.3