Commit 3b0a75c9 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk
Browse files

Dumper: Fix internal dumpers with Python 3



Change-Id: Ic38a827ce32e17fc7038ea974e05c77959367342
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 9f15f30d
......@@ -51,7 +51,7 @@ def readTemplateName(d, value):
impl = args["_M_impl"]
start = impl["_M_start"]
size = impl["_M_finish"] - start
for i in range(size):
for i in range(int(size)):
if i > 0:
name += ", "
name += extractPointerType(d, d.downcast(start[i]["_type"]))
......@@ -73,7 +73,7 @@ def readLiteral(d, value):
elif typestr == "CPlusPlus::QualifiedNameId":
return readLiteral(d, value["_base"]) + "::" + readLiteral(d, value["_name"])
try:
return d.extractBlob(value["_chars"], value["_size"]).toBytes()
return d.extractBlob(value["_chars"], value["_size"]).toString()
except:
return "<unsupported>"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment