Commit f42d44a4 authored by hjk's avatar hjk

Debugger: Recognize '-' as start of numeric template argument

Change-Id: Ibc0fd730655378dca3dc231dbad36981364ccf70
Reviewed-by: Christian Stenger's avatarChristian Stenger <christian.stenger@qt.io>
parent b26400e8
...@@ -574,7 +574,7 @@ class DumperBase: ...@@ -574,7 +574,7 @@ class DumperBase:
res = [] res = []
for item in targs[::-1]: for item in targs[::-1]:
c = ord(item[0]) c = ord(item[0])
if c == '-' or (c >= 48 and c < 58): if c in (45, 46) or (c >= 48 and c < 58): # '-', '.' or digit.
if item.find('.') > -1: if item.find('.') > -1:
res.append(float(item)) res.append(float(item))
else: else:
......
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