Bug 1319118 - Don't clobber half of a 64-bit window ID by assigning it to a 32-bit variable; r=mcmanus

This is the textbook use case for the auto keyword. :)
This commit is contained in:
Ehsan Akhgari 2016-11-21 12:15:46 -05:00
parent 58e976f33d
commit a5c45faa60

View File

@ -2189,7 +2189,7 @@ HttpBaseChannel::AddSecurityMessage(const nsAString &aMessageTag,
return NS_ERROR_FAILURE;
}
uint32_t innerWindowID = loadInfo->GetInnerWindowID();
auto innerWindowID = loadInfo->GetInnerWindowID();
nsXPIDLString errorText;
rv = nsContentUtils::GetLocalizedString(