patches/thunderbird3-35-compiler-workaround-3.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 18224 2f4ff9bedba1
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.

--- a/js/src/jsvector.h	2009-10-16 14:59:39.988229000 +0800
+++ b/js/src/jsvector.h	2009-10-16 15:00:12.259437000 +0800
@@ -662,7 +662,8 @@
     /* We are !usingInlineStorage(). Initialize new elements. */
     JS_ASSERT(heapLength() <= heapCapacity() && heapCapacity() - heapLength() >= needed);
     Impl::copyConstructN(heapEnd(), needed, t);
-    heapEnd() += needed;
+    T *& heapEndTmp = heapEnd();
+    heapEndTmp += needed;
     return true;
 }