Bug 665354 followup: Revert s/0/NULL/ in jsgc.cpp to fix GCC warning. r=jorendorff
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 11 Aug 2011 11:47:50 -0700
changeset 74272 fbbf306c6cb57561152ab0a5feeda9a04ec96b5e
parent 74271 2012711170aa976cb48f2337f86b13060482f284
child 74273 6e0bd0a510ccf804513dc188d1278eb73bd12551
push id2
push userbsmedberg@mozilla.com
push dateFri, 19 Aug 2011 14:38:13 +0000
reviewersjorendorff
bugs665354
milestone8.0a1
Bug 665354 followup: Revert s/0/NULL/ in jsgc.cpp to fix GCC warning. r=jorendorff
js/src/jsgc.cpp
--- a/js/src/jsgc.cpp
+++ b/js/src/jsgc.cpp
@@ -230,17 +230,17 @@ Arena::finalize(JSContext *cx)
 #ifdef DEBUG
                 nmarked++;
 #endif
                 if (newFreeSpanStart) {
                     JS_ASSERT(thing >= thingsStart(sizeof(T)) + sizeof(T));
                     newListTail->first = newFreeSpanStart;
                     newListTail->last = thing - sizeof(T);
                     newListTail = newListTail->nextSpanUnchecked(sizeof(T));
-                    newFreeSpanStart = NULL;
+                    newFreeSpanStart = 0;
                 }
             } else {
                 if (!newFreeSpanStart)
                     newFreeSpanStart = thing;
                 t->finalize(cx);
                 memset(t, JS_FREE_PATTERN, sizeof(T));
             }
         }