summaryrefslogtreecommitdiff
path: root/interpret.h
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 /interpret.h
parentc182937de92dc028a12a6c9350773dced1841751 (diff)
downloadgawk-a5f04737b4a5fce89ab7bd9264ba5b4813473121.tar.gz
Changes to ROUNDMODE now invalidate cached string values.
Diffstat (limited to 'interpret.h')
-rw-r--r--interpret.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/interpret.h b/interpret.h
index 4b140c28..2ee68112 100644
--- a/interpret.h
+++ b/interpret.h
@@ -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.
@@ -735,6 +735,9 @@ mod:
/* configure as a string as in make_str_node */
t1->flags |= (MALLOC|STRING|STRCUR);
t1->stfmt = STFMT_UNUSED;
+#ifdef HAVE_MPFR
+ t1->strndmode = MPFR_round_mode;
+#endif
if ((t1->flags & WSTRCUR) != 0 && (t2->flags & WSTRCUR) != 0) {
size_t wlen = t1->wstlen + t2->wstlen;