aboutsummaryrefslogtreecommitdiff
path: root/src/common/compress_zstd.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-09-20 09:45:07 -0400
committerNick Mathewson <nickm@torproject.org>2017-09-20 09:45:07 -0400
commitff0aabc35d3688410846d7fee1a0dc9220b189ef (patch)
tree8ff6027fb68168047d598dd29663c0f329fc96b3 /src/common/compress_zstd.c
parent427ae164f33aad6004290fc407d53ab3315b399a (diff)
parent1a26c6be8b013822eccaa2feece24954f60185bb (diff)
downloadtor-ff0aabc35d3688410846d7fee1a0dc9220b189ef.tar.gz
tor-ff0aabc35d3688410846d7fee1a0dc9220b189ef.zip
Merge branch 'maint-0.3.1'
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 58ec28d001..c1cdaf17ad 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 /* !(defined(HAVE_ZSTD)) */