Skip to content

Commit 1c85683

Browse files
authored
74 codeql (microsoft#13563)
* CodeQL fix * Change files
1 parent 4f5aa72 commit 1c85683

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "CodeQL fix",
4+
"packageName": "react-native-windows",
5+
"email": "1422161+marlenecota@users.noreply.github.com",
6+
"dependentChangeType": "patch"
7+
}

vnext/Common/Utilities.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ string EncodeBase64(string_view text) noexcept {
4848
std::copy(encode_base64(bytes.cbegin()), encode_base64(bytes.cend()), ostream_iterator<char>(oss));
4949

5050
// https://unix.stackexchange.com/questions/631501
51-
auto padLength = (4 - (oss.tellp() % 4)) % 4;
52-
for (auto i = 0; i < padLength; ++i) {
51+
size_t padLength = (4 - (oss.tellp() % 4)) % 4;
52+
for (size_t i = 0; i < padLength; ++i) {
5353
oss << '=';
5454
}
5555

0 commit comments

Comments
 (0)