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 <eocallaghan@alterapraxis.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Edward O'Callaghan
2015-07-29 21:49:45 +10:00
committed by Marek Olšák
parent 8c0b943e87
commit 86a72ee48e
+1 -1
View File
@@ -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;
}