- fixes: improved POINTER TO IDENT mechanism, prevent core dump when

definition module not found, corrected typo.
- changed mechanism for variables that have their address given.
- added option for symmetric integer ranges
This commit is contained in:
ceriel
1987-06-29 12:46:00 +00:00
parent b93c1cb093
commit efafb68f00
11 changed files with 57 additions and 21 deletions

View File

@@ -177,7 +177,7 @@ CodeCoercion(t1, t2)
fund1 = T_CARDINAL;
break;
}
switch(fund2 = t1->tp_fund) {
switch(fund2 = t2->tp_fund) {
case T_WORD:
fund2 = T_INTEGER;
break;
@@ -556,7 +556,10 @@ CodeStd(nd)
if (tp->tp_fund == T_INTEGER) C_adi(size);
else C_adu(size);
}
if (size == word_size) RangeCheck(tp, int_type);
if (size == word_size) {
RangeCheck(tp, tp->tp_fund == T_INTEGER ?
int_type : card_type);
}
CodeDStore(left);
break;
}