Bug 1083373 part 3: Use string::size_type to iterate over a string, in ClearKeyUtils.cpp. r=edwin

This commit is contained in:
Daniel Holbert 2014-10-27 18:12:51 -07:00
parent 9073fbc605
commit 10331193dc

View File

@ -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++;