diff options
author | Andreas Stieger <astieger@suse.com> | 2017-09-18 21:15:52 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-20 09:43:08 -0400 |
commit | 427c2cc9e8f640769a7f8771c42b89948e78028e (patch) | |
tree | d5a9d67d2f3993a6dc8468a6d834281087713518 /src/common/compress_zstd.c | |
parent | 654820ec1ca79f5938db81b6d78c452afa1cd9a6 (diff) | |
download | tor-427c2cc9e8f640769a7f8771c42b89948e78028e.tar.gz tor-427c2cc9e8f640769a7f8771c42b89948e78028e.zip |
in zstd compression, fix 32 bit build
format '%lu' expects argument of type 'long unsigned int', but argument ... has type 'size_t'
Closes ticket 23568.
Diffstat (limited to 'src/common/compress_zstd.c')
-rw-r--r-- | src/common/compress_zstd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/compress_zstd.c b/src/common/compress_zstd.c index 0808bcd9ab..63e92ed22d 100644 --- a/src/common/compress_zstd.c +++ b/src/common/compress_zstd.c @@ -62,10 +62,10 @@ tor_zstd_get_version_str(void) version_number = ZSTD_versionNumber(); tor_snprintf(version_str, sizeof(version_str), - "%lu.%lu.%lu", - version_number / 10000 % 100, - version_number / 100 % 100, - version_number % 100); + "%d.%d.%d", + (int) version_number / 10000 % 100, + (int) version_number / 100 % 100, + (int) version_number % 100); return version_str; #else |