The tuple validation for opcode results failed to assert if a result
was a tuple before attempting to check its length and types. This
patch adds the missing "Is it a tuple?" check.

Signed-off-by: Hrvoje Ribicic <[email protected]>
---
 lib/ht.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ht.py b/lib/ht.py
index ee82148..590c852 100644
--- a/lib/ht.py
+++ b/lib/ht.py
@@ -433,7 +433,7 @@ def TTupleOf(*val_types):
 
   """
   desc = WithDesc("Tuple of %s" % (Parens(val_types), ))
-  return desc(TAnd(TIsLength(len(val_types)), TItems(val_types)))
+  return desc(TAnd(TTuple, TIsLength(len(val_types)), TItems(val_types)))
 
 
 def TSetOf(val_type):
-- 
2.0.0.526.g5318336

Reply via email to