d3d8: Fix a ptrdiff_t warning on 64-bit.

Alexandre Julliard julliard at winehq.org
Mon Jan 11 14:54:32 CST 2010


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



More information about the wine-devel mailing list