diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-08-22 23:28:52 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-08-22 23:28:52 +0000 |
commit | 25a25245e2511dd07195ad82251cb3c5ba5f5294 (patch) | |
tree | 38c189ecdcc7024ce21987721106cc7c74334b4b /Build/source/texk/web2c/mplibdir | |
parent | a3307ce77e24c459d6c146d5a78a65f0d6f01881 (diff) |
mplibdir: sync with the upstream
git-svn-id: svn://tug.org/texlive/trunk@41908 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/mplibdir')
-rw-r--r-- | Build/source/texk/web2c/mplibdir/mp.w | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/Build/source/texk/web2c/mplibdir/mp.w b/Build/source/texk/web2c/mplibdir/mp.w index 549e670e669..107fdcd368f 100644 --- a/Build/source/texk/web2c/mplibdir/mp.w +++ b/Build/source/texk/web2c/mplibdir/mp.w @@ -1,4 +1,4 @@ -% $Id: mp.w 2080 2016-03-06 21:26:30Z luigi $ +% $Id: mp.w 2089 2016-08-22 09:42:23Z luigi $ % % This file is part of MetaPost; % the MetaPost program is in the public domain. @@ -2568,7 +2568,7 @@ void mp_new_randoms (MP mp) { mp->j_random = 54; } -@ To consume a random fraction, the program below will say `|next_random|'. +@ To consume a random fraction, the program below will say `|next_random|'. Now each number system has its own implementation, true to the original as much as possibile. @@ -2597,7 +2597,7 @@ As said before, now each number system has its own implementation. @c /*Unused. static void mp_unif_rand (MP mp, mp_number *ret, mp_number x_orig) { - mp_number y; // trial value + mp_number y; // trial value mp_number x, abs_x; mp_number u; new_fraction (y); @@ -31118,15 +31118,10 @@ void mp_scan_with_list (MP mp, mp_node p) { } } else if (t == with_mp_post_script) { if (cur_exp_str ()->len) { - mp_node k = NULL; /* for finding the near-last item in a list */ if (bp == MP_VOID) - k = p; - bp = k; - while (k && mp_link (k) != NULL) { /* clang: dereference null pointer 'k' */ - k = mp_link (k); - if (has_color (k)) - bp = k; - } + bp = p; + while ((bp != NULL) && (!has_color (bp))) + bp = mp_link (bp); if (bp != NULL) { if (mp_post_script (bp) != NULL) { unsigned old_setting; /* saved |selector| setting */ |