Bug 569586 - XPCOM compilation failure on mingw-w64 due to pointer to int cast loosing precision. r=benjamin

--HG--
extra : rebase_source : e4d0b0b110992af5f397aea52c36a5f5ed9f56c5
This commit is contained in:
Jacek Caban 2010-06-25 14:02:24 +02:00
Родитель fcce45e724
Коммит f48d5e9dd0
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -1031,7 +1031,7 @@ NS_DescribeCodeAddress(void *aPC, nsCodeAddressDetails *aDetails)
// This just makes sure we get good info if available.
//
DWORD addr = (DWORD)aPC;
DWORD_PTR addr = (DWORD_PTR)aPC;
IMAGEHLP_MODULE modInfo;
IMAGEHLP_LINE lineInfo;
BOOL modInfoRes;

Просмотреть файл

@ -139,7 +139,7 @@ nsWindowsRegKey::OpenChild(const nsAString &path, PRUint32 mode,
if (!child)
return NS_ERROR_OUT_OF_MEMORY;
nsresult rv = child->Open((PRUint32) mKey, path, mode);
nsresult rv = child->Open((uintptr_t) mKey, path, mode);
if (NS_FAILED(rv))
return rv;
@ -157,7 +157,7 @@ nsWindowsRegKey::CreateChild(const nsAString &path, PRUint32 mode,
if (!child)
return NS_ERROR_OUT_OF_MEMORY;
nsresult rv = child->Create((PRUint32) mKey, path, mode);
nsresult rv = child->Create((uintptr_t) mKey, path, mode);
if (NS_FAILED(rv))
return rv;