aboutsummaryrefslogtreecommitdiffstats
path: root/str_array.c
diff options
context:
space:
mode:
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;