summaryrefslogtreecommitdiff
path: root/indra/llcommon/llbase64.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2024-04-10 10:30:08 +0300
committerGitHub <noreply@github.com>2024-04-10 10:30:08 +0300
commit8701e0973450da9c3c1dd905e73011bdeb09c93e (patch)
treeaecadf995f0174cc41f7cb9846a1382a930d8f82 /indra/llcommon/llbase64.cpp
parent37392be4171303db08a4842b7882b4cb758a8f8d (diff)
parent8fa956a16e616191e21bf001eabc4670453debcd (diff)
Merge pull request #1178 from secondlife/marchcat/b-merge
Release (Maint W) -> Maint B merge
Diffstat (limited to 'indra/llcommon/llbase64.cpp')
-rw-r--r--indra/llcommon/llbase64.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llcommon/llbase64.cpp b/indra/llcommon/llbase64.cpp
index bb85fe32a3..433b54f6f8 100644
--- a/indra/llcommon/llbase64.cpp
+++ b/indra/llcommon/llbase64.cpp
@@ -42,7 +42,7 @@ std::string LLBase64::encode(const U8* input, size_t input_size)
&& input_size > 0)
{
// Yes, it returns int.
- int b64_buffer_length = apr_base64_encode_len(narrow(input_size));
+ int b64_buffer_length = apr_base64_encode_len(narrow<size_t>(input_size));
char* b64_buffer = new char[b64_buffer_length];
// This is faster than apr_base64_encode() if you know
@@ -52,7 +52,7 @@ std::string LLBase64::encode(const U8* input, size_t input_size)
b64_buffer_length = apr_base64_encode_binary(
b64_buffer,
input,
- narrow(input_size));
+ narrow<size_t>(input_size));
output.assign(b64_buffer);
delete[] b64_buffer;
}