aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.y
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-10-21 21:06:03 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-10-21 21:06:03 +0300
commitd0f55780cc2e6078c2c28db5f1b5731a4cb580bc (patch)
tree42ea4d91cb97a3ce88722f21d2c3ace4890bc73a /awkgram.y
parent1af6b1b8112f7a67c8a5080d610eee19d14fed7d (diff)
parent372e3bef424ad2cec3de5fbc4da30ddf88c9533e (diff)
downloadegawk-d0f55780cc2e6078c2c28db5f1b5731a4cb580bc.tar.gz
egawk-d0f55780cc2e6078c2c28db5f1b5731a4cb580bc.tar.bz2
egawk-d0f55780cc2e6078c2c28db5f1b5731a4cb580bc.zip
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'awkgram.y')
-rw-r--r--awkgram.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/awkgram.y b/awkgram.y
index ece0d2bb..7a1ffcad 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -1606,7 +1606,8 @@ common_exp
// 1.5 "" # can't fold this if program mucks with CONVFMT.
// See test #12 in test/posix.awk.
- if ((n1->flags & (NUMBER|NUMINT)) != 0 || (n2->flags & (NUMBER|NUMINT)) != 0)
+ // Also can't fold if one or the other is translatable.
+ if ((n1->flags & (NUMBER|NUMINT|INTLSTR)) != 0 || (n2->flags & (NUMBER|NUMINT|INTLSTR)) != 0)
goto plain_concat;
n1 = force_string(n1);