Bug 1257303 - Cast to intptr_t to avoid C4312 on VS2015; r=tbsaunde

Without this, we get: C4312: 'reinterpret_cast': conversion from
'const LONG' to 'void *' of greater size

MozReview-Commit-ID: 4WXmvVUd5c8

--HG--
extra : rebase_source : 2f4211f4e752ef0ac2a1213075af6b62ecc8080f
extra : histedit_source : a1c91d27d8a97f141f07e89513262256104388ea
This commit is contained in:
Gregory Szorc 2016-03-23 15:46:40 -07:00
parent f80479d54a
commit 11c9bc4603

View File

@ -1525,7 +1525,7 @@ AccessibleWrap::GetXPAccessibleFor(const VARIANT& aVarChild)
// First handle the case that both this accessible and the id'd one are in
// this process.
if (!IsProxy()) {
void* uniqueID = reinterpret_cast<void*>(-aVarChild.lVal);
void* uniqueID = reinterpret_cast<void*>(intptr_t(-aVarChild.lVal));
DocAccessible* document = Document();
Accessible* child =