Skip to content

Commit f564e9c

Browse files
author
Daniel Kroening
authored
Merge pull request #110 from tautschnig/jsil-cleanup
Avoid warnings and errors with selected compilers in jsil front-end
2 parents 906ed9a + e2fbac1 commit f564e9c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/jsil/jsil_typecheck.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,9 +1155,9 @@ void jsil_typecheckt::typecheck_function_call(
11551155
// if there are too few arguments, add undefined
11561156
if(codet.parameters().size()>call.arguments().size())
11571157
{
1158-
for(int i=call.arguments().size();
1159-
i<codet.parameters().size();
1160-
i++)
1158+
for(std::size_t i=call.arguments().size();
1159+
i<codet.parameters().size();
1160+
++i)
11611161
call.arguments().push_back(
11621162
exprt("undefined", jsil_undefined_type()));
11631163
}

src/jsil/parser.y

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,10 @@ atom_expression: literal
393393
}
394394
| TOK_TYPEOF '(' expression ')'
395395
{
396-
exprt typeof(ID_typeof);
397-
typeof.move_to_operands(stack($3));
396+
exprt typeof_expr(ID_typeof);
397+
typeof_expr.move_to_operands(stack($3));
398398

399-
newstack($$).swap(typeof);
399+
newstack($$).swap(typeof_expr);
400400
}
401401
;
402402

0 commit comments

Comments
 (0)