aboutsummaryrefslogtreecommitdiffstats
path: root/str_array.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2020-07-08 19:24:12 +0300
committerArnold D. Robbins <arnold@skeeve.com>2020-07-08 19:24:12 +0300
commitc372dc85effd4fa1a5f955ae88a9f0d003c92b5a (patch)
tree49a5f62bcea87fd80f7284c905370a0c2f37c8b3 /str_array.c
parentb1400a29ad5776b2e0c867a171b466a05605461e (diff)
parent2a3d876938d39d03cf563d1bd8382c316839c08d (diff)
downloadegawk-c372dc85effd4fa1a5f955ae88a9f0d003c92b5a.tar.gz
egawk-c372dc85effd4fa1a5f955ae88a9f0d003c92b5a.tar.bz2
egawk-c372dc85effd4fa1a5f955ae88a9f0d003c92b5a.zip
Merge branch 'gawk-5.1-stable'
Diffstat (limited to 'str_array.c')
-rw-r--r--str_array.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/str_array.c b/str_array.c
index c90f7861..84bd2f02 100644
--- a/str_array.c
+++ b/str_array.c
@@ -168,9 +168,11 @@ str_lookup(NODE *symbol, NODE *subs)
// Special cases:
// 1. The string was generated using CONVFMT.
// 2. The string was from an unassigned variable.
- // 3. The string was from an unassigned field.
+ // 3. The string was from a straight number, perniciously, from MPFR
+ // 4. The string was from an unassigned field.
if ( subs->stfmt != STFMT_UNUSED
|| subs == Nnull_string
+ || (subs->flags & STRING) == 0
|| (subs->flags & NULL_FIELD) != 0) {
NODE *tmp;