- fixed the octal parser in strbin. Like its hex counterpart it needs to backtrack one character if it find the end of a sequence.
- since ZScript already receives filtered strings, the 'T' converter for the properties should not do it again.
This commit is contained in:
parent
b206d19df4
commit
dc055b74c1
2 changed files with 7 additions and 4 deletions
|
|
@ -632,7 +632,10 @@ int strbin (char *str)
|
|||
if (*p >= '0' && *p <= '7')
|
||||
c += *p-'0';
|
||||
else
|
||||
{
|
||||
p--;
|
||||
break;
|
||||
}
|
||||
p++;
|
||||
}
|
||||
*str++ = c;
|
||||
|
|
@ -732,7 +735,10 @@ FString strbin1 (const char *start)
|
|||
if (*p >= '0' && *p <= '7')
|
||||
c += *p-'0';
|
||||
else
|
||||
{
|
||||
p--;
|
||||
break;
|
||||
}
|
||||
p++;
|
||||
}
|
||||
result << c;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue