From: Jason Power Date: Tue, 9 Apr 2013 21:12:42 +0000 (-0500) Subject: Ruby: Fix typo in Slicc if-statement AST error X-Git-Tag: stable_2013_06_16~15 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19cc9fc6bd4c725a37b3442a03fc7d874d160930;p=gem5.git Ruby: Fix typo in Slicc if-statement AST error The error in the SLICC code was hidden by the python error in SLICC parser before this patch --- diff --git a/src/mem/slicc/ast/IfStatementAST.py b/src/mem/slicc/ast/IfStatementAST.py index 0e023195c..3ad3d182d 100644 --- a/src/mem/slicc/ast/IfStatementAST.py +++ b/src/mem/slicc/ast/IfStatementAST.py @@ -48,7 +48,7 @@ class IfStatementAST(StatementAST): if cond_type != self.symtab.find("bool", Type): self.cond.error("Condition of if stmt must be bool, type was '%s'", - ctype) + cond_type) # Conditional code.indent()