diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-04-05 14:34:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-05 14:34:31 +0200 |
commit | b80b072c44cfc4f6ec1bfecc045374597eb296e0 (patch) | |
tree | 39544b604c8be6cf6daa56a2a7774426d394c2a3 /modules/fbx/fbx_parser/FBXUtil.cpp | |
parent | 33b8f1448e3efd8ad71c65c3d42581fae82905a3 (diff) | |
parent | d83761ba80b90e17aaefaa83c7ece0fa89511266 (diff) |
Merge pull request #47642 from akien-mga/clang-tidy-fixes
Diffstat (limited to 'modules/fbx/fbx_parser/FBXUtil.cpp')
-rw-r--r-- | modules/fbx/fbx_parser/FBXUtil.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/fbx/fbx_parser/FBXUtil.cpp b/modules/fbx/fbx_parser/FBXUtil.cpp index 80ea5fab4c..4295cb6f5e 100644 --- a/modules/fbx/fbx_parser/FBXUtil.cpp +++ b/modules/fbx/fbx_parser/FBXUtil.cpp @@ -122,8 +122,9 @@ static const uint8_t base64DecodeTable[128] = { uint8_t DecodeBase64(char ch) { const auto idx = static_cast<uint8_t>(ch); - if (idx > 127) + if (idx > 127) { return 255; + } return base64DecodeTable[idx]; } @@ -211,8 +212,9 @@ std::string EncodeBase64(const char *data, size_t length) { EncodeByteBlock(&finalBytes[0], encoded_string, iEncodedByte); // add '=' at the end - for (size_t i = 0; i < 4 * extraBytes / 3; i++) + for (size_t i = 0; i < 4 * extraBytes / 3; i++) { encoded_string[encodedBytes - i - 1] = '='; + } } return encoded_string; } |