diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2020-07-09 19:01:25 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2020-07-09 19:01:25 +0300 |
commit | 528867035383b29a901b6d6f13052abe8071b158 (patch) | |
tree | b46dabddb9ceb2f5a8a9a3e5101d7952ab43d38e | |
parent | 124712be30d752324e51f0e6b8e92c7e1b59bcc7 (diff) | |
download | egawk-528867035383b29a901b6d6f13052abe8071b158.tar.gz egawk-528867035383b29a901b6d6f13052abe8071b158.tar.bz2 egawk-528867035383b29a901b6d6f13052abe8071b158.zip |
Fix indirect call tests for MPFR.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | awkgram.y | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -5,6 +5,11 @@ * debug.c (do_eval): Preserve DO_MPFR flag in do_flags before parsing the string to be evaluated. + Fix indirect call tests for MPFR: + + * awkgram.y (lookup_builtin): Only return the MPFR builtin + function if the pointer is not NULL. + 2020-07-08 Arnold D. Robbins <arnold@skeeve.com> * str_array.c (str_lookup): If a pure number, copy to a string. Fixes @@ -6476,7 +6476,7 @@ lookup_builtin(const char *name) return (builtin_func_t) do_sub; #ifdef HAVE_MPFR - if (do_mpfr) + if (do_mpfr && tokentab[mid].ptr2 != NULL) return tokentab[mid].ptr2; #endif |