Fixed syntax errors
git-svn-id: svn://10.0.0.236/trunk@2291 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1025,7 +1025,7 @@ fun_xdrObject(JSXDRState *xdr, JSObject **objp)
|
||||
propname = ATOM_BYTES(sym_atom(sprop->symbols));
|
||||
propid = sprop->id;
|
||||
if (!JS_XDRUint32(xdr, &type) ||
|
||||
!JS_XDRUint32(xdr, &propid) ||
|
||||
!JS_XDRUint32(xdr, (uint32 *)&propid) ||
|
||||
!JS_XDRCString(xdr, &propname))
|
||||
return JS_FALSE;
|
||||
}
|
||||
@@ -1035,7 +1035,7 @@ fun_xdrObject(JSXDRState *xdr, JSObject **objp)
|
||||
i = fun->nvars + fun->nargs;
|
||||
while (i--) {
|
||||
if (!JS_XDRUint32(xdr, &type) ||
|
||||
!JS_XDRUint32(xdr, &propid) ||
|
||||
!JS_XDRUint32(xdr, (uint32 *)&propid) ||
|
||||
!JS_XDRCString(xdr, &propname))
|
||||
return JS_FALSE;
|
||||
PR_ASSERT(type == JSXDR_FUNARG || type == JSXDR_FUNVAR);
|
||||
|
||||
@@ -117,7 +117,7 @@ num_parseInt(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||
while (JS_ISSPACE(*chars) && *chars != 0)
|
||||
chars++;
|
||||
|
||||
if ((negative = (*chars == '-')) || *chars == '+')
|
||||
if ((negative = (*chars == '-')) != 0 || *chars == '+')
|
||||
chars++;
|
||||
|
||||
if (argc > 1) {
|
||||
|
||||
Reference in New Issue
Block a user