mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
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.
This commit is contained in:
parent
654820ec1c
commit
427c2cc9e8
@ -62,10 +62,10 @@ tor_zstd_get_version_str(void)
|
|||||||
|
|
||||||
version_number = ZSTD_versionNumber();
|
version_number = ZSTD_versionNumber();
|
||||||
tor_snprintf(version_str, sizeof(version_str),
|
tor_snprintf(version_str, sizeof(version_str),
|
||||||
"%lu.%lu.%lu",
|
"%d.%d.%d",
|
||||||
version_number / 10000 % 100,
|
(int) version_number / 10000 % 100,
|
||||||
version_number / 100 % 100,
|
(int) version_number / 100 % 100,
|
||||||
version_number % 100);
|
(int) version_number % 100);
|
||||||
|
|
||||||
return version_str;
|
return version_str;
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user