From e3324dd2aeeb1fe11cac956b2cc877e870d7876f Mon Sep 17 00:00:00 2001 From: Cary R Date: Tue, 25 Jan 2011 16:34:12 -0800 Subject: [PATCH] vlog95: Don't hide exp function with variable. This patch renames the exp variable to be exponent since exp is a math function. --- tgt-vlog95/misc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tgt-vlog95/misc.c b/tgt-vlog95/misc.c index ad3ed55b3..dd6258ecc 100644 --- a/tgt-vlog95/misc.c +++ b/tgt-vlog95/misc.c @@ -91,9 +91,9 @@ void emit_scaled_delayx(ivl_scope_t scope, ivl_expr_t expr) } emit_scaled_delay(scope, value); } else { - int exp = ivl_scope_time_units(scope) - sim_precision; - assert(exp >= 0); - if (exp == 0) emit_expr(scope, expr, 0); + int exponent = ivl_scope_time_units(scope) - sim_precision; + assert(exponent >= 0); + if (exponent == 0) emit_expr(scope, expr, 0); else { uint64_t scale_val, scale = 1; int rtype; @@ -135,9 +135,9 @@ void emit_scaled_delayx(ivl_scope_t scope, ivl_expr_t expr) vlog_errors += 1; return; } - while (exp > 0) { + while (exponent > 0) { scale *= 10; - exp -= 1; + exponent -= 1; } if (scale != scale_val) { fprintf(vlog_out, "");