aboutsummaryrefslogtreecommitdiff
path: root/src/common/compress_zstd.c
diff options
context:
space:
mode:
authorAndreas Stieger <astieger@suse.com>2017-09-18 21:15:52 +0200
committerNick Mathewson <nickm@torproject.org>2017-09-20 09:43:08 -0400
commit427c2cc9e8f640769a7f8771c42b89948e78028e (patch)
treed5a9d67d2f3993a6dc8468a6d834281087713518 /src/common/compress_zstd.c
parent654820ec1ca79f5938db81b6d78c452afa1cd9a6 (diff)
downloadtor-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.c8
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