One more pointer stored into a 32 bits int remove in mvl_parse.

This commit is contained in:
Jean-Paul Chaput 2018-03-28 18:03:44 +02:00
parent c5431990d5
commit bf8fe82403
3 changed files with 18 additions and 13 deletions

View File

@ -15,6 +15,8 @@
#include "mvl_parse.h"
#include "mvl_utdef.h"
int yydebug = 1;
extern void mvl_y_restart();
void vhdlloadlofig (pt_lofig, figname, mode)

View File

@ -21,6 +21,7 @@
#include "gen_generic.h"
extern int yydebug = 1;
extern int yylex ();
extern void yyerror ();
@ -42,6 +43,8 @@ static struct logen MVL_LOGEN;
static long base ;
%}
/* %define parse.trace */
%union
{
long valu;
@ -1460,15 +1463,15 @@ primary
{
mvl_expr expr;
struct losig *losig_pnt;
long i;
long left;
long right;
long left_bnd;
long right_bnd;
long sig_width;
long rev_flg;
long in_bound;
long out_bound;
long i;
long left;
long right;
long left_bnd;
long right_bnd;
long sig_width;
long rev_flg;
long in_bound;
long out_bound;
if (mvl_chktab (MVL_HSHTAB,$1.NAME,MVL_MODNAM,MVL_SIGDFN) != 0)
{
@ -1493,7 +1496,7 @@ primary
sig_width = right_bnd - left_bnd + 1;
if (left <= right)
{
expr.WIDTH = right - left + 1;
expr.WIDTH = right - left + 1;
rev_flg = 0;
in_bound = right_bnd - right;
out_bound = right_bnd - left;
@ -1502,7 +1505,7 @@ primary
}
else
{
expr.WIDTH = left - right + 1;
expr.WIDTH = left - right + 1;
rev_flg = 1;
in_bound = right_bnd - left;
out_bound = right_bnd - right;
@ -1524,7 +1527,7 @@ primary
}
else
{
expr.WIDTH = left - right + 1;
expr.WIDTH = left - right + 1;
rev_flg = 0;
in_bound = right - right_bnd;
out_bound = left - right_bnd;

View File

@ -28,5 +28,5 @@ struct dct_recrd
short fd4_val;
short fd5_val;
short fd6_val;
int pnt_val;
long pnt_val;
};