chore(bin/lean-gdb): fix mismatched type?

This commit is contained in:
Sebastian Ullrich 2017-03-02 17:37:59 +01:00 committed by Leonardo de Moura
parent b34eac6f1d
commit 3dd7a69068

View file

@ -46,7 +46,7 @@ class LeanExprPrinter:
def __init__(self, val):
self.kind = val['m_ptr']['m_kind']
self.kind = int(val['m_ptr']['m_kind'])
subtype = gdb.lookup_type(LeanExprPrinter.expr_kinds[self.kind][0])
self.val = val['m_ptr'].cast(subtype.pointer()).dereference()