aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/compat/sodium/sodium_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/compat/sodium/sodium_utils.cpp')
-rw-r--r--src/lib/compat/sodium/sodium_utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/compat/sodium/sodium_utils.cpp b/src/lib/compat/sodium/sodium_utils.cpp
index 208355583..4b7afdb3d 100644
--- a/src/lib/compat/sodium/sodium_utils.cpp
+++ b/src/lib/compat/sodium/sodium_utils.cpp
@@ -133,7 +133,7 @@ void Sodium::sodium_free(void* ptr)
uint8_t* p = static_cast<uint8_t*>(ptr) - 8;
const uint64_t len = load_le<uint64_t>(p, 0);
- secure_scrub_memory(ptr, len);
+ secure_scrub_memory(ptr, static_cast<size_t>(len));
std::free(p);
}