Bug 611778. r=jorendorff. Forgot one nit, DONTBUILD.
authorBen Turner <bent.mozilla@gmail.com>
Wed, 08 Dec 2010 08:55:09 -0800
changeset 58992 6637226d1ee2e4a490eb72d30fb57b55652fb518
parent 58991 4c18087c8bdab7bf22727c77e51c63971a7c64f2
child 58993 92a5b1438bae5d3f5fc48084019e05b757b93b9c
push id17488
push userrsayre@mozilla.com
push dateThu, 09 Dec 2010 18:38:23 +0000
treeherderautoland@58dcad7165be [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorendorff
bugs611778
milestone2.0b8pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 611778. r=jorendorff. Forgot one nit, DONTBUILD.
js/src/jsclone.cpp
--- a/js/src/jsclone.cpp
+++ b/js/src/jsclone.cpp
@@ -603,17 +603,17 @@ class Chars {
     ~Chars() { if (p) cx->free(p); }
 
     bool allocate(JSContext *cx, size_t len) {
         JS_ASSERT(!p);
         // We're going to null-terminate!
         p = (jschar *) cx->malloc((len + 1) * sizeof(jschar));
         this->cx = cx;
         if (p) {
-            p[len] = (jschar)0;
+            p[len] = jschar(0);
             return true;
         }
         return false;
     }
     jschar *get() { return p; }
     void forget() { p = NULL; }
 };