Explorar el Código

Added check for integer.

Jayke Meijer hace 14 años
padre
commit
7d47e370cd
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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