Ver código fonte

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.
Andreas Stieger 7 anos atrás
pai
commit
427c2cc9e8
1 arquivos alterados com 4 adições e 4 exclusões
  1. 4 4
      src/common/compress_zstd.c

+ 4 - 4
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