Skip to content

Commit 2252f09

Browse files
committed
fix for negative int data
1 parent 05f465c commit 2252f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fancy_demo/fancy.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ int _get_tag_data(String tag, TagType tag_type)
261261
int p = tag.IndexOf(":") + 1;
262262
if (p == 0) return -1;
263263
String data = tag.Substring(p, tag.Length-p);
264-
if (data.Chars[0] >= '0' && data.Chars[0] <= '9') return data.AsInt;
264+
if (data.Chars[0] >= '0' && data.Chars[0] <= '9' || data.Chars[0]== '-') return data.AsInt;
265265
if (_tvdict.Contains(data)) {
266266
String sval = _tvdict.Get(data);
267267
return sval.AsInt;

0 commit comments

Comments
 (0)