added rcsid

removed sign extension bug in large constants
This commit is contained in:
sater 1984-05-19 11:38:48 +00:00
parent 65e35e6d53
commit f792cb549e

View file

@ -1,3 +1,7 @@
#ifndef NORCSID
static char rcsid[] = "$Header$";
#endif
#include "assert.h" #include "assert.h"
#include "param.h" #include "param.h"
#include "tables.h" #include "tables.h"
@ -157,7 +161,7 @@ result_t compute(node) node_p node; {
return(dollar[node->ex_lnode-1]); return(dollar[node->ex_lnode-1]);
case EX_CON: case EX_CON:
result.e_typ = EV_INT; result.e_typ = EV_INT;
result.e_v.e_con = ((long) node->ex_rnode << 16) | node->ex_lnode; result.e_v.e_con = ((long) node->ex_rnode << 16) | ((long)node->ex_lnode&0xffff);
return(result); return(result);
case EX_REG: case EX_REG:
result.e_typ = EV_REG; result.e_typ = EV_REG;