summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEdward O'Callaghan <[email protected]>2015-07-29 21:49:45 +1000
committerMarek Olšák <[email protected]>2015-08-13 01:25:26 +0200
commit86a72ee48eb371566765566fc778d790bc9ce201 (patch)
treec71d8d25b878a6c7eca1b22f22f36aea2c699970 /src
parent8c0b943e87b48e7359230825cc06fbdd059a9e58 (diff)
mesa: Fix printf format specifier warn of the ptrdiff_t
See §7.19.6.1, paragraph 7 of the ISO C specification. Signed-off-by: Edward O'Callaghan <[email protected]> Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/bufferobj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index 6ddcc5cad4e..1cdea937f91 100644
--- a/src/mesa/main/bufferobj.c
+++ b/src/mesa/main/bufferobj.c
@@ -2373,7 +2373,7 @@ _mesa_map_buffer_range(struct gl_context *ctx,
if (offset + length > bufObj->Size) {
_mesa_error(ctx, GL_INVALID_VALUE,
- "%s(offset %ld + length %ld > buffer_size %ld)", func,
+ "%s(offset %td + length %td > buffer_size %td)", func,
offset, length, bufObj->Size);
return NULL;
}