[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] in zstd compression, fix 32 bit build



commit 427c2cc9e8f640769a7f8771c42b89948e78028e
Author: Andreas Stieger <astieger@xxxxxxxx>
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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits