Преглед изворни кода

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

Taddeus Kroes пре 14 година
родитељ
комит
19cebc6054
1 измењених фајлова са 2 додато и 1 уклоњено
  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