[tor-commits] [tor/release-0.3.1] in zstd compression, fix 32 bit build
nickm at torproject.org
nickm at torproject.org
Wed Sep 20 13:45:13 UTC 2017
commit 427c2cc9e8f640769a7f8771c42b89948e78028e
Author: Andreas Stieger <astieger at suse.com>
Date: Mon Sep 18 21:15:52 2017 +0200
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.
---
src/common/compress_zstd.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/common/compress_zstd.c b/src/common/compress_zstd.c
index 0808bcd9a..63e92ed22 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
More information about the tor-commits
mailing list