mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
Bug 1083373 part 3: Use string::size_type to iterate over a string, in ClearKeyUtils.cpp. r=edwin
This commit is contained in:
parent
1b6621fefd
commit
f0d22b773e
@ -97,7 +97,7 @@ EncodeBase64Web(vector<uint8_t> aBinary, string& aEncoded)
|
||||
|
||||
auto out = aEncoded.begin();
|
||||
auto data = aBinary.begin();
|
||||
for (int i = 0; i < aEncoded.length(); i++) {
|
||||
for (string::size_type i = 0; i < aEncoded.length(); i++) {
|
||||
if (shift) {
|
||||
out[i] = (*data << (6 - shift)) & sMask;
|
||||
data++;
|
||||
|
Loading…
Reference in New Issue
Block a user