Merge "Fix Win32 build."

This commit is contained in:
Elliott Hughes 2015-04-29 19:36:33 +00:00 committed by Gerrit Code Review
commit ffa0d24d09
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ int _adb_connect(const char *service, std::string* error) {
D("_adb_connect: %s\n", service);
size_t len = strlen(service);
if ((len < 1) || (len > 1024)) {
*error = android::base::StringPrintf("service name too long (%zd)", len);
*error = android::base::StringPrintf("service name too long (%d)", static_cast<int>(len));
return -1;
}
snprintf(tmp, sizeof tmp, "%04zx", len);