V0.9: Fix incorrect function in tgt-stub/expression.c.
This fixes a bug where the unary expression code was using the incorrect function to check to see if the data type was real.
This commit is contained in:
parent
a7645b2191
commit
bfb1678dee
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2007 Stephen Williams (steve@icarus.com)
|
||||
* Copyright (c) 2007-2011 Stephen Williams (steve@icarus.com)
|
||||
*
|
||||
* This source code is free software; you can redistribute it
|
||||
* and/or modify it in source code form under the terms of the GNU
|
||||
|
|
@ -240,7 +240,7 @@ void show_unary_expression(ivl_expr_t net, unsigned ind)
|
|||
break;
|
||||
}
|
||||
|
||||
if (ivl_expr_opcode(net) == '!' && ivl_expr_type(net)==IVL_VT_REAL) {
|
||||
if (ivl_expr_opcode(net) == '!' && ivl_expr_value(net) == IVL_VT_REAL) {
|
||||
fprintf(out, "%*sERROR: Real argument to unary ! !?\n", ind,"");
|
||||
stub_errors += 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue