]> git.cworth.org Git - apitrace/blobdiff - retrace.py
tracedump: Add tri-state --color option (auto, always, or never)
[apitrace] / retrace.py
index 22ce5eda3066ff321b578bbf09659e2ea0e8bd46..3f55df1da423e7809b37c842038a17775ca563f1 100644 (file)
@@ -53,8 +53,7 @@ def handle_entry(handle, value):
 class ValueExtractor(stdapi.Visitor):
 
     def visit_literal(self, literal, lvalue, rvalue):
-        #if literal.format in ('Bool', 'UInt'):
-        print '    %s = (%s).to%s();' % (lvalue, rvalue, literal.format)
+        print '    %s = (%s).to%s();' % (lvalue, rvalue, literal.kind)
 
     def visit_const(self, const, lvalue, rvalue):
         self.visit(const.type, lvalue, rvalue)