gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] gawk branch, gawk-5.1-stable, updated. gawk-4.1.0-4254-gea7bbec


From: Arnold Robbins
Subject: [SCM] gawk branch, gawk-5.1-stable, updated. gawk-4.1.0-4254-gea7bbec
Date: Fri, 4 Jun 2021 03:40:04 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, gawk-5.1-stable has been updated
       via  ea7bbec49eff411dac42c34c1d743a9742715c8c (commit)
      from  9a15a6a255b5c4c1086c5b6b6e97745b43240feb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=ea7bbec49eff411dac42c34c1d743a9742715c8c

commit ea7bbec49eff411dac42c34c1d743a9742715c8c
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Fri Jun 4 10:39:46 2021 +0300

    Fix for HP-UX.

diff --git a/ChangeLog b/ChangeLog
index ed8fde3..2864eec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2021-06-04         Arnold D. Robbins     <arnold@skeeve.com>
+
+       * builtin.c (format_tree): In MPFR prints, cast values to
+       int for proper int vs. unsigned comparison. Fixes things
+       for HP-UX. Thanks to Daniel Richard G. for the report.
+
+2021-06-04         Arnold D. Robbins     <arnold@skeeve.com>
+
 2021-05-21         Arnold D. Robbins     <arnold@skeeve.com>
 
        * debug.c: For z/OS, use %#p to print pointers, %p everything else.
diff --git a/builtin.c b/builtin.c
index e28c35e..454034f 100644
--- a/builtin.c
+++ b/builtin.c
@@ -1558,19 +1558,19 @@ mpf1:
                        case MP_INT_WITH_PREC:
                                sprintf(cp, "*.*Z%c", cs1);
                                while ((nc = mpfr_snprintf(obufout, ofre, cpbuf,
-                                            (int) fw, (int) prec, zi)) >= ofre)
+                                            (int) fw, (int) prec, zi)) >= 
(int) ofre)
                                        chksize(nc)
                                break;
                        case MP_INT_WITHOUT_PREC:
                                sprintf(cp, "*Z%c", cs1);
                                while ((nc = mpfr_snprintf(obufout, ofre, cpbuf,
-                                            (int) fw, zi)) >= ofre)
+                                            (int) fw, zi)) >= (int) ofre)
                                        chksize(nc)
                                break;
                        case MP_FLOAT:
                                sprintf(cp, "*.*R*%c", cs1);
                                while ((nc = mpfr_snprintf(obufout, ofre, cpbuf,
-                                            (int) fw, (int) prec, ROUND_MODE, 
mf)) >= ofre)
+                                            (int) fw, (int) prec, ROUND_MODE, 
mf)) >= (int) ofre)
                                        chksize(nc)
                                break;
 #endif
@@ -1579,7 +1579,7 @@ mpf1:
                                        sprintf(cp, "*.*%c", cs1);
                                        while ((nc = snprintf(obufout, ofre, 
cpbuf,
                                                     (int) fw, (int) prec,
-                                                    (double) tmpval)) >= ofre)
+                                                    (double) tmpval)) >= (int) 
ofre)
                                                chksize(nc)
                                } else {
                                        // For %a and %A, use the default 
precision if it
@@ -1587,7 +1587,7 @@ mpf1:
                                        sprintf(cp, "*%c", cs1);
                                        while ((nc = snprintf(obufout, ofre, 
cpbuf,
                                                     (int) fw,
-                                                    (double) tmpval)) >= ofre)
+                                                    (double) tmpval)) >= (int) 
ofre)
                                                chksize(nc)
                                }
                        }

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog |  8 ++++++++
 builtin.c | 10 +++++-----
 2 files changed, 13 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]