d3d8: Fix a ptrdiff_t warning on 64-bit.
Nicolas Le Cam
niko.lecam at gmail.com
Tue Jan 12 01:30:22 CST 2010
2010/1/11 Alexandre Julliard <julliard at winehq.org>:
> Nicolas Le Cam <niko.lecam at gmail.com> writes:
>
>> @@ -175,7 +175,7 @@ static DWORD d3d8_allocate_handle(struct d3d8_handle_table *t, void *object, enu
>> entry = t->free_entries;
>> if (entry->type != D3D8_HANDLE_FREE)
>> {
>> - ERR("Handle %u(%p) is in the free list, but has type %#x.\n", (entry - t->entries), entry, entry->type);
>> + ERR("Handle %tu(%p) is in the free list, but has type %#x.\n", (entry - t->entries), entry, entry->type);
>
> Please don't use that kind of printf formats, they are not portable.
>
> --
> Alexandre Julliard
> julliard at winehq.org
>
Sorry about that, I did see a 'C90' mention on an online printf manual
that I can't find anymore (I should have compiled with -pedantic
before submitting).
--
Nicolas Le Cam
More information about the wine-devel
mailing list