From a3d94bf88819ce3f0ffa161137a5549fc6d8490b Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 12 Jan 2014 21:04:42 +0100 Subject: [PATCH] Fixed typo in frontends/ast/simplify.cc --- frontends/ast/simplify.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 9b8ed7603..bc5dec7b9 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -1065,7 +1065,7 @@ skip_dynamic_range_lvalue_expansion:; { AstNode *buf = children[0]->clone(); while (buf->simplify(true, false, false, stage, width_hint, sign_hint)) { } - if (!buf->type == AST_CONSTANT) + if (buf->type != AST_CONSTANT) log_error("Failed to evaluate system function `%s' with non-constant value at %s:%d.\n", str.c_str(), filename.c_str(), linenum); RTLIL::Const arg_value = buf->bitsAsConst(); -- 2.30.2