diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/awk.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editors/awk.c b/editors/awk.c index 70df2fd..f7451ae 100644 --- a/editors/awk.c +++ b/editors/awk.c @@ -1359,8 +1359,10 @@ static node *parse_expr(uint32_t iexp) v = cn->l.v = xzalloc(sizeof(var)); if (tc & TC_NUMBER) setvar_i(v, t_double); - else + else { setvar_s(v, t_string); + xtc &= ~TC_UOPPOST; /* "str"++ is not allowed */ + } break; case TC_REGEXP: |