From a5f04737b4a5fce89ab7bd9264ba5b4813473121 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Wed, 3 Jan 2018 22:28:39 +0200 Subject: Changes to ROUNDMODE now invalidate cached string values. --- gawkapi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gawkapi.c') diff --git a/gawkapi.c b/gawkapi.c index f8964db2..80d3ebca 100644 --- a/gawkapi.c +++ b/gawkapi.c @@ -3,7 +3,7 @@ */ /* - * Copyright (C) 2012-2017 the Free Software Foundation, Inc. + * Copyright (C) 2012-2018 the Free Software Foundation, Inc. * * This file is part of GAWK, the GNU implementation of the * AWK Programming Language. @@ -925,6 +925,9 @@ api_sym_update_scalar(awk_ext_id_t id, r->stfmt = STFMT_UNUSED; r->stptr = value->str_value.str; r->stlen = value->str_value.len; +#ifdef HAVE_MPFR + r->strndmode = MPFR_round_mode; +#endif return awk_true; } break; -- cgit v1.2.3