summaryrefslogtreecommitdiff
path: root/braces.c
diff options
context:
space:
mode:
Diffstat (limited to 'braces.c')
-rw-r--r--braces.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/braces.c b/braces.c
index 0fb9b9d7..4d229ca4 100644
--- a/braces.c
+++ b/braces.c
@@ -340,8 +340,8 @@ expand_seqterm (text, tlen)
if (lhs_t == ST_CHAR)
{
- lhs_v = lhs[0];
- rhs_v = rhs[0];
+ lhs_v = (unsigned char)lhs[0];
+ rhs_v = (unsigned char)rhs[0];
}
else
{
@@ -402,6 +402,8 @@ brace_gobbler (text, tlen, indx, satisfy)
{
pass_next = 1;
i++;
+ if (quoted == 0)
+ level++;
continue;
}
#endif