Parcourir la source

Merge branch 'master' of github.com:taddeus/peephole

Taddeus Kroes il y a 14 ans
Parent
commit
19cebc6054
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/statement.py

+ 2 - 1
src/statement.py

@@ -194,7 +194,8 @@ class Statement:
         if self.is_double_arithmetic() or self.is_set_if_less() \
                 or self.is_logical() \
                 or self.is_command(*['addu', 'subu']):
-            use.append(self[2])
+            if not isinstance(self[2] , int):
+                    use.append(self[2])
 
         return use