am 74e6349d: Merge "Fix signed issue with hex conversion." into mnc-dev

* commit '74e6349d8e4dde988c121e9674472908cc8c748d':
  Fix signed issue with hex conversion.
This commit is contained in:
Jeff Sharkey 2015-04-30 17:34:00 +00:00 committed by Android Git Automerger
commit 47b9deba5b

View file

@ -381,7 +381,7 @@ static const char* kLookup = "0123456789abcdef";
status_t StrToHex(const std::string& str, std::string& hex) {
hex.clear();
for (size_t i = 0; i < str.size(); i++) {
hex.push_back(kLookup[str[i] >> 4]);
hex.push_back(kLookup[(str[i] & 0xF0) >> 4]);
hex.push_back(kLookup[str[i] & 0x0F]);
}
return OK;