Bug 1256530 - Fix compiler warnings about casting to larger size. r=hsivonen

Specifically, the Microsoft VS2015u1 compiler said:
warning C4312: 'type cast': conversion from 'unsigned int' to
'nsIContent *' of greater size
This commit is contained in:
Mats Palmgren
2016-03-17 17:27:56 +01:00
parent 7c370fe44b
commit e62218ea55
2 changed files with 2 additions and 2 deletions

View File

@@ -648,7 +648,7 @@ nsHtml5Highlighter::AllocateContentHandle()
mHandlesUsed = 0;
}
#ifdef DEBUG
mHandles[mHandlesUsed] = (nsIContent*)0xC0DEDBAD;
mHandles[mHandlesUsed] = reinterpret_cast<nsIContent*>(uintptr_t(0xC0DEDBAD));
#endif
return &mHandles[mHandlesUsed++];
}