diff --git a/jslex.c b/jslex.c index 7676f75..0c54e77 100644 --- a/jslex.c +++ b/jslex.c @@ -219,7 +219,7 @@ static inline int lexcomment(js_State *J) /* already consumed initial '/' '*' sequence */ while (PEEK != 0) { if (ACCEPT('*')) { - while (ACCEPT('*')) + while (PEEK == '*') NEXT(); if (ACCEPT('/')) return 0;