Fixing linux warning

This commit is contained in:
mcafee%netscape.com 1999-07-15 03:02:44 +00:00
parent ab2352e498
commit 5083998c76

View File

@ -2439,7 +2439,7 @@ PrimaryExpr(JSContext *cx, JSTokenStream *ts, JSTreeContext *tc)
#endif
case TOK_RESERVED:
badWord = js_DeflateString(cx, ts->token.ptr,
ts->token.pos.end.index - ts->token.pos.begin.index);
(size_t) ts->token.pos.end.index - ts->token.pos.begin.index);
js_ReportCompileErrorNumber(cx, ts, JSREPORT_ERROR,
JSMSG_RESERVED_ID, badWord);
JS_free(cx, badWord);