AWSCore

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
pappeste
2021-06-17 16:51:45 -07:00
committed by Esteban Papp
parent eb2da69e6e
commit 2c11569df2
3 changed files with 3 additions and 4 deletions
@@ -43,8 +43,7 @@ namespace AWSCore
if (urlSections.size() > ExpectedUrlSections)
{
int i;
i = urlSections[ExpectedUrlSections - 1].find('.');
int i = static_cast<int>(urlSections[ExpectedUrlSections - 1].find('.'));
if (i != -1)
{
// Handle APIGateway URLs with custom domains:
@@ -391,7 +391,7 @@ namespace AWSCore
int offset = 0;
while (offset < message.size())
{
int count = (offset + MAX_MESSAGE_LENGTH < message.size()) ? MAX_MESSAGE_LENGTH : message.size() - offset;
int count = static_cast<int>((offset + MAX_MESSAGE_LENGTH < message.size()) ? MAX_MESSAGE_LENGTH : message.size() - offset);
AZ_Warning(ServiceClientJobType::COMPONENT_DISPLAY_NAME, false, message.substr(offset, count).c_str());
offset += MAX_MESSAGE_LENGTH;
}
@@ -443,7 +443,7 @@ namespace AWSCore
msg += AZStd::string::format(" at character %zu: ", result.Offset());
const int snippet_size = 40;
int start = result.Offset() - snippet_size / 2;
int start = static_cast<int>(result.Offset() - snippet_size / 2);
int length = snippet_size;
int offset = snippet_size / 2;
if (start < 0) {