diff options
| author | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2024-04-19 16:44:01 +0200 |
|---|---|---|
| committer | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2024-04-19 16:44:01 +0200 |
| commit | 6dfe04ddd7c7f936f0505baf4cdf0f7992a8f614 (patch) | |
| tree | 7187f99be9ca37ce03b8764a7701f7d012b71620 /monero_libwallet2_api_c/src/main/cpp | |
| parent | b98653c32f602b29738fcf6813400a39b8816711 (diff) | |
unsigned long longv0.18.3.3-RC29
Diffstat (limited to 'monero_libwallet2_api_c/src/main/cpp')
| -rw-r--r-- | monero_libwallet2_api_c/src/main/cpp/helpers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/monero_libwallet2_api_c/src/main/cpp/helpers.cpp b/monero_libwallet2_api_c/src/main/cpp/helpers.cpp index d4ca540..3191390 100644 --- a/monero_libwallet2_api_c/src/main/cpp/helpers.cpp +++ b/monero_libwallet2_api_c/src/main/cpp/helpers.cpp @@ -68,7 +68,7 @@ const char* vectorToString(const std::vector<uint64_t>& vec, const std::string s size_t size = 0; for (size_t i = 0; i < vec.size(); ++i) { // Calculate the number of digits in each element - size += snprintf(nullptr, 0, "%lu", vec[i]); + size += snprintf(nullptr, 0, "%llu", vec[i]); // Add comma and space for all elements except the last one if (i < vec.size() - 1) { size += separator.size(); // comma and space @@ -86,7 +86,7 @@ const char* vectorToString(const std::vector<uint64_t>& vec, const std::string s char* current = result; for (size_t i = 0; i < vec.size(); ++i) { // Convert each element to string and copy to the result string - int written = snprintf(current, size + 1, "%lu", vec[i]); + int written = snprintf(current, size + 1, "%llu", vec[i]); current += written; // Add comma and space for all elements except the last one if (i < vec.size() - 1) { |
