1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 09:02:38 +00:00

ao/wasapi: refix printf warning for both cygwin and msys

a cast to (unsigned) should do "the right thing".
This commit is contained in:
Kevin Mitchell 2014-11-18 04:54:51 -08:00
parent 19e9c9d1be
commit 94ea4435a9

View File

@ -52,8 +52,8 @@ static int PKEY_compare(const PROPERTYKEY *l, const PROPERTYKEY *r)
static char *GUID_to_str_buf(char *buf, size_t buf_size, const GUID *guid)
{
snprintf(buf, buf_size,
"{%8.8lx-%4.4x-%4.4x-%2.2x%2.2x-%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x}",
guid->Data1, guid->Data2, guid->Data3,
"{%8.8x-%4.4x-%4.4x-%2.2x%2.2x-%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x}",
(unsigned) guid->Data1, guid->Data2, guid->Data3,
guid->Data4[0], guid->Data4[1],
guid->Data4[2], guid->Data4[3],
guid->Data4[4], guid->Data4[5],