From bfb1678dee0970161284c7164a62d21f5ed4e2e7 Mon Sep 17 00:00:00 2001 From: Cary R Date: Mon, 20 Jun 2011 14:16:42 -0700 Subject: [PATCH] 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. --- tgt-stub/expression.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tgt-stub/expression.c b/tgt-stub/expression.c index 204709e46..4fa37773e 100644 --- a/tgt-stub/expression.c +++ b/tgt-stub/expression.c @@ -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; }