Ruby: Fix typo in Slicc if-statement AST error
authorJason Power <powerjg@cs.wisc.edu>
Tue, 9 Apr 2013 21:12:42 +0000 (16:12 -0500)
committerJason Power <powerjg@cs.wisc.edu>
Tue, 9 Apr 2013 21:12:42 +0000 (16:12 -0500)
The error in the SLICC code was hidden by the python error in SLICC parser
before this patch

src/mem/slicc/ast/IfStatementAST.py

index 0e023195cb2b70bc6da9333baefa44318c8d871f..3ad3d182d7abd40cbb2d32c1e83ef76999ff81db 100644 (file)
@@ -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()