diff options
author | Jan Horak <jhorak@redhat.com> | 2014-01-09 10:56:01 +0100 |
---|---|---|
committer | Jan Horak <jhorak@redhat.com> | 2014-01-09 10:56:01 +0100 |
commit | 875d0c0e871da050a4cfe44c0afae09c1ad739e4 (patch) | |
tree | 4b858f42c056f60f19639786e815667c3cd2dfb2 /mozilla-885002.patch | |
parent | * Tue Dec 17 2013 Martin Stransky <stransky@redhat.com> - 26.0-4 (diff) | |
download | librewolf-fedora-ff-875d0c0e871da050a4cfe44c0afae09c1ad739e4.tar.gz librewolf-fedora-ff-875d0c0e871da050a4cfe44c0afae09c1ad739e4.tar.bz2 librewolf-fedora-ff-875d0c0e871da050a4cfe44c0afae09c1ad739e4.zip |
Standalone firefox package without need of xulrunner
Diffstat (limited to 'mozilla-885002.patch')
-rw-r--r-- | mozilla-885002.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mozilla-885002.patch b/mozilla-885002.patch new file mode 100644 index 0000000..e48c89a --- /dev/null +++ b/mozilla-885002.patch @@ -0,0 +1,30 @@ +# HG changeset patch +# Parent d8fd5706493e19bcb85443316a4c180849f5d247 +# User Steve Singer <steve@ssinger.info> +Bug 885002 - Fix casting on 64 bit Big Endian platforms. + + +diff --git a/content/media/FileBlockCache.h b/content/media/FileBlockCache.h +--- a/content/media/FileBlockCache.h ++++ b/content/media/FileBlockCache.h +@@ -138,19 +138,17 @@ public: + + bool IsEmpty() { + return nsDeque::GetSize() == 0; + } + + 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<int32_t*>(&v)); ++ return reinterpret_cast<uintptr_t>(v); + } + }; + + private: + int64_t BlockIndexToOffset(int32_t aBlockIndex) { + return static_cast<int64_t>(aBlockIndex) * BLOCK_SIZE; + } + |