aboutsummaryrefslogtreecommitdiffstats
path: root/mpfr.c
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2016-06-30 09:59:47 -0400
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2016-06-30 09:59:47 -0400
commit92b5353bf364897f02003c4116cabe6d48ea17eb (patch)
tree3a942f5608c3065f49fa175ef688316e04daacc9 /mpfr.c
parent2ab2d5f2c468b647615d984cb7953217c63695af (diff)
downloadegawk-92b5353bf364897f02003c4116cabe6d48ea17eb.tar.gz
egawk-92b5353bf364897f02003c4116cabe6d48ea17eb.tar.bz2
egawk-92b5353bf364897f02003c4116cabe6d48ea17eb.zip
Use new STFMT_UNUSED define to improve code clarity, and fix some minor stfmt issues.
Diffstat (limited to 'mpfr.c')
-rw-r--r--mpfr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpfr.c b/mpfr.c
index f2c58116..0bb5b435 100644
--- a/mpfr.c
+++ b/mpfr.c
@@ -370,11 +370,11 @@ mpg_format_val(const char *format, int index, NODE *s)
if (is_mpg_integer(s) || mpfr_integer_p(s->mpg_numbr)) {
/* integral value, use %d */
r = format_tree("%d", 2, dummy, 2);
- s->stfmt = -1;
+ s->stfmt = STFMT_UNUSED;
} else {
r = format_tree(format, fmt_list[index]->stlen, dummy, 2);
assert(r != NULL);
- s->stfmt = (char) index;
+ s->stfmt = index;
}
s->flags = oflags;
s->stlen = r->stlen;