Fixed syntax errors

git-svn-id: svn://10.0.0.236/trunk@2291 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waldemar
1998-05-26 21:25:41 +00:00
parent b9b928f869
commit 66bf5ae377
2 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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) {