Commit 9cb8fe01 authored by hjk's avatar hjk
Browse files

debugger: improve QWeakPointer dumper

strongref == -1 is valid
parent f2459acc
...@@ -1948,7 +1948,7 @@ def qdump__QWeakPointer(d, item): ...@@ -1948,7 +1948,7 @@ def qdump__QWeakPointer(d, item):
return return
weakref = d_ptr["weakref"]["_q_value"] weakref = d_ptr["weakref"]["_q_value"]
strongref = d_ptr["strongref"]["_q_value"] strongref = d_ptr["strongref"]["_q_value"]
check(0 < int(strongref)) check(int(strongref) >= -1)
check(int(strongref) <= int(weakref)) check(int(strongref) <= int(weakref))
check(int(weakref) <= 10*1000*1000) check(int(weakref) <= 10*1000*1000)
......
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