From 92b5353bf364897f02003c4116cabe6d48ea17eb Mon Sep 17 00:00:00 2001 From: "Andrew J. Schorr" Date: Thu, 30 Jun 2016 09:59:47 -0400 Subject: Use new STFMT_UNUSED define to improve code clarity, and fix some minor stfmt issues. --- int_array.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'int_array.c') diff --git a/int_array.c b/int_array.c index f17bddef..e7913dea 100644 --- a/int_array.c +++ b/int_array.c @@ -92,8 +92,10 @@ is_integer(NODE *symbol, NODE *subs) /* * Protect against MAYBE_NUM values where the string may not regenerate * correctly. There could be white space and/or a non-decimal value. + * If stfmt is not STFMT_UNUSED, it means that the string value was + * generated using CONVFMT or OFMT, so there is no info there. */ - if ((subs->flags & STRCUR) != 0) { + if ((subs->flags & STRCUR) != 0 && subs->stfmt == STFMT_UNUSED) { char *cp = subs->stptr; if ( subs->stlen == 0 -- cgit v1.2.3