diff options
author | Max Kellermann <max@musicpd.org> | 2021-05-19 18:43:19 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2021-05-19 18:43:19 +0200 |
commit | 96707c04266ffba8e8faad9f90ad34dd09d14b3e (patch) | |
tree | 997afd845f1dfc54e25a9c55be0a45dcdff1ac07 /src/client | |
parent | e016cc894090127c5fe72b009290b4bf4a534363 (diff) | |
parent | 3547fc7e61a1339680fca81efda562a28c68c373 (diff) |
Merge tag 'v0.22.7'
release v0.22.7
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/Response.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/Response.cxx b/src/client/Response.cxx index 0c9145a50..b582d6bbc 100644 --- a/src/client/Response.cxx +++ b/src/client/Response.cxx @@ -61,7 +61,12 @@ Response::WriteBinary(ConstBuffer<void> payload) noexcept { assert(payload.size <= client.binary_limit); - return Format("binary: %zu\n", payload.size) && + return +#ifdef _WIN32 + Format("binary: %lu\n", (unsigned long)payload.size) && +#else + Format("binary: %zu\n", payload.size) && +#endif Write(payload.data, payload.size) && Write("\n"); } |