Quick followup to last checkin -- warning fixes (d'oh!)

git-svn-id: svn://10.0.0.236/trunk@113772 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brendan%mozilla.org
2002-02-06 07:56:29 +00:00
parent 31cf9fbeb3
commit 70118ca998
2 changed files with 6 additions and 2 deletions

View File

@@ -1783,7 +1783,7 @@ js_EmitFunctionBody(JSContext *cx, JSCodeGenerator *cg, JSParseNode *body,
* SRC_SETLINE. \
*/ \
(cg)->currentLine = line_; \
if (delta_ >= (int32)(2 + ((line_ > SN_3BYTE_OFFSET_MASK)<<1))) { \
if (delta_ >= (uintN)(2 + ((line_ > SN_3BYTE_OFFSET_MASK)<<1))) { \
if (js_NewSrcNote2(cx, cg, SRC_SETLINE, (ptrdiff_t)line_) < 0)\
return JS_FALSE; \
} else { \

View File

@@ -2553,7 +2553,11 @@ ArgumentList(JSContext *cx, JSTokenStream *ts, JSTreeContext *tc,
PN_APPEND(listNode, argNode);
} while (js_MatchToken(cx, ts, TOK_COMMA));
MUST_MATCH_TOKEN(TOK_RP, JSMSG_PAREN_AFTER_ARGS);
if (js_GetToken(cx, ts) != TOK_RP) {
js_ReportCompileErrorNumber(cx, ts, NULL, JSREPORT_ERROR,
JSMSG_PAREN_AFTER_ARGS);
return JS_FALSE;
}
}
return JS_TRUE;
}