[Bug 446229] Fixing GCC conversion warnings within SpiderMonkey. r=brendan

This commit is contained in:
Igor Bukanov
2008-07-20 14:53:21 +02:00
parent 47c7bf6e90
commit 65884fee82
9 changed files with 30 additions and 28 deletions

View File

@@ -613,7 +613,7 @@ obj_toSource(JSContext *cx, uintN argc, jsval *vp)
jschar *chars, *ochars, *vsharp;
const jschar *idstrchars, *vchars;
size_t nchars, idstrlength, gsoplength, vlength, vsharplength, curlen;
char *comma;
const char *comma;
jsint i, j, length, valcnt;
jsid id;
#if JS_HAS_GETTER_SETTER
@@ -1930,7 +1930,7 @@ js_NewBlockObject(JSContext *cx)
JS_UNLOCK_OBJ(cx, obj);
if (!ok)
return NULL;
OBJ_SET_PROTO(cx, obj, NULL);
OBJ_CLEAR_PROTO(cx, obj);
return obj;
}
@@ -2218,7 +2218,7 @@ js_InitBlockClass(JSContext *cx, JSObject* obj)
if (!proto)
return NULL;
OBJ_SET_PROTO(cx, proto, NULL);
OBJ_CLEAR_PROTO(cx, proto);
return proto;
}