diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2014-11-18 04:54:51 -0800 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2014-11-18 05:03:33 -0800 |
commit | 94ea4435a9a86876389c0816c9eaf8260a2931a5 (patch) | |
tree | 471ea42368521849d196f8a093c779b94d4714c4 | |
parent | 19e9c9d1be1673294420f6965bcdbb1c40b046b6 (diff) | |
download | mpv-94ea4435a9a86876389c0816c9eaf8260a2931a5.tar.bz2 mpv-94ea4435a9a86876389c0816c9eaf8260a2931a5.tar.xz |
ao/wasapi: refix printf warning for both cygwin and msys
a cast to (unsigned) should do "the right thing".
-rwxr-xr-x | audio/out/ao_wasapi_changenotify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/out/ao_wasapi_changenotify.c b/audio/out/ao_wasapi_changenotify.c index 9c7c772691..e09b162356 100755 --- a/audio/out/ao_wasapi_changenotify.c +++ b/audio/out/ao_wasapi_changenotify.c @@ -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], |