aboutsummaryrefslogtreecommitdiffstats
path: root/field.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-01-03 22:28:39 +0200
committerArnold D. Robbins <arnold@skeeve.com>2018-01-03 22:28:39 +0200
commita5f04737b4a5fce89ab7bd9264ba5b4813473121 (patch)
tree1fdc4b049f5eab73b15af306069a52eac110934b /field.c
parentc182937de92dc028a12a6c9350773dced1841751 (diff)
downloadegawk-a5f04737b4a5fce89ab7bd9264ba5b4813473121.tar.gz
egawk-a5f04737b4a5fce89ab7bd9264ba5b4813473121.tar.bz2
egawk-a5f04737b4a5fce89ab7bd9264ba5b4813473121.zip
Changes to ROUNDMODE now invalidate cached string values.
Diffstat (limited to 'field.c')
-rw-r--r--field.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/field.c b/field.c
index 5263cc61..0d7e6330 100644
--- a/field.c
+++ b/field.c
@@ -3,7 +3,7 @@
*/
/*
- * Copyright (C) 1986, 1988, 1989, 1991-2017 the Free Software Foundation, Inc.
+ * Copyright (C) 1986, 1988, 1989, 1991-2018 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Programming Language.
@@ -308,6 +308,9 @@ set_record(const char *buf, int cnt, const awk_fieldwidth_info_t *fw)
n->valref = 1;
n->type = Node_val;
n->stfmt = STFMT_UNUSED;
+#ifdef HAVE_MPFR
+ n->strndmode = MPFR_round_mode;
+#endif
n->flags = (STRING|STRCUR|USER_INPUT); /* do not set MALLOC */
fields_arr[0] = n;
if (fw != api_fw) {