compiler/libec: (#205) Fixed integer promotions to follow the C standard (6.3.1.1)
[sdk] / compiler / bootstrap / libec / bootstrap / expression.c
index 0a36b6b..c3edbc5 100644 (file)
@@ -1583,7 +1583,7 @@ int len = constant ? strlen(constant) : 0;
 
 if(constant && constant[len - 1] == '.')
 {
-constant[len - 1] = (char)0;
+constant[len - 1] = 0;
 yyval.exp = MkExpMember(yyvsp[(1) - (2)].exp, yyvsp[(2) - (2)].id);
 yyval.exp->loc = (yyloc);
 }
@@ -4166,7 +4166,7 @@ yyn = yypact[yystate];
 if(yyn != -619)
 {
 yyn += 1;
-if(0 <= yyn && yyn <= 7700 && yycheck[yyn] == (short)1)
+if(0 <= yyn && yyn <= 7700 && yycheck[yyn] == 1)
 {
 yyn = yytable[yyn];
 if(0 < yyn)