summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--glx/indirect_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glx/indirect_util.c b/glx/indirect_util.c
index de8149127..9ba28157c 100644
--- a/glx/indirect_util.c
+++ b/glx/indirect_util.c
@@ -73,7 +73,7 @@ __glXGetAnswerBuffer(__GLXclientState * cl, size_t required_size,
void *local_buffer, size_t local_size, unsigned alignment)
{
void *buffer = local_buffer;
- const unsigned mask = alignment - 1;
+ const intptr_t mask = alignment - 1;
if (local_size < required_size) {
size_t worst_case_size;