diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-10-16 10:25:36 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-10-16 10:25:36 +0300 |
commit | fa1a43af4efe4bc31ea54fca503f880ed2f50f42 (patch) | |
tree | 8a8c06cc319d0195dbfbc125906f735b64d95167 /profile.c | |
parent | 71fe2c27de224b885f56e49097310f6664952110 (diff) | |
parent | 2d63bc3ee2a686560d29e1eb7b433deb45fd7619 (diff) | |
download | egawk-fa1a43af4efe4bc31ea54fca503f880ed2f50f42.tar.gz egawk-fa1a43af4efe4bc31ea54fca503f880ed2f50f42.tar.bz2 egawk-fa1a43af4efe4bc31ea54fca503f880ed2f50f42.zip |
Merge branch 'master' into feature/cmake
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -463,10 +463,13 @@ cleanup: case Op_field_spec: case Op_field_spec_lhs: case Op_unary_minus: + case Op_unary_plus: case Op_not: t1 = pp_pop(); if (is_binary(t1->type) - || (((OPCODE) t1->type) == pc->opcode && pc->opcode == Op_unary_minus)) + || (((OPCODE) t1->type) == pc->opcode + && (pc->opcode == Op_unary_minus + || pc->opcode == Op_unary_plus))) pp_parenthesize(t1); /* optypes table (eval.c) includes space after ! */ @@ -1198,6 +1201,7 @@ prec_level(int type) return 13; case Op_unary_minus: + case Op_unary_plus: case Op_not: return 12; @@ -1284,6 +1288,7 @@ is_scalar(int type) case Op_postincrement: case Op_postdecrement: case Op_unary_minus: + case Op_unary_plus: case Op_not: return true; |