Fix genvar increment/decrement operations to be signed (issue #568)
This commit is contained in:
parent
67b9374c69
commit
e1d6fd78f4
2
pform.cc
2
pform.cc
|
|
@ -3146,7 +3146,7 @@ PExpr* pform_genvar_inc_dec(const struct vlltype&loc, const char*name, bool inc_
|
|||
}
|
||||
|
||||
PExpr*lval = new PEIdent(lex_strings.make(name));
|
||||
PExpr*rval = new PENumber(new verinum((uint64_t)1, 1));
|
||||
PExpr*rval = new PENumber(new verinum(1));
|
||||
FILE_NAME(lval, loc);
|
||||
FILE_NAME(rval, loc);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue