From 3644edc85d0b02f2d909a3dc16c76a3f9b00e87c Mon Sep 17 00:00:00 2001 From: Steve Singer Date: Tue, 5 Nov 2013 07:45:00 -0500 Subject: [PATCH] Bug 885002 - Fix casting on 64 bit Big Endian platforms. r=cpearce --- content/media/FileBlockCache.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/content/media/FileBlockCache.h b/content/media/FileBlockCache.h index 8ce219bd15d4..68d075aa9d55 100644 --- a/content/media/FileBlockCache.h +++ b/content/media/FileBlockCache.h @@ -143,9 +143,7 @@ public: private: int32_t ObjectAt(int32_t aIndex) { void* v = nsDeque::ObjectAt(aIndex); - // Ugly hack to work around "casting 64bit void* to 32bit int loses precision" - // error on 64bit Linux. - return *(reinterpret_cast(&v)); + return reinterpret_cast(v); } };