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-4318-gb119426


From: Andrew J. Schorr
Subject: [SCM] gawk branch, gawk-5.1-stable, updated. gawk-4.1.0-4318-gb119426
Date: Mon, 27 Sep 2021 10:29:49 -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  b119426eb9db950752533dd410710a6389ee633a (commit)
      from  58431879b19a1b1cd5ff3a6575be07c46c73db39 (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=b119426eb9db950752533dd410710a6389ee633a

commit b119426eb9db950752533dd410710a6389ee633a
Author: Andrew J. Schorr <aschorr@telemetry-investments.com>
Date:   Mon Sep 27 10:29:35 2021 -0400

    Fix white space in ord function patch.

diff --git a/extension/ChangeLog b/extension/ChangeLog
index d795260..094f682 100644
--- a/extension/ChangeLog
+++ b/extension/ChangeLog
@@ -1,5 +1,9 @@
 2021-09-27         Andrew J. Schorr      <aschorr@telemetry-investments.com>
 
+       * ordchr.c (do_ord): Add white space around cast.
+
+2021-09-27         Andrew J. Schorr      <aschorr@telemetry-investments.com>
+
        * ordchr.c (do_ord): Need to cast to unsigned char to avoid returning
        negative values.
 
diff --git a/extension/ordchr.c b/extension/ordchr.c
index d367988..ff990b6 100644
--- a/extension/ordchr.c
+++ b/extension/ordchr.c
@@ -67,7 +67,7 @@ do_ord(int nargs, awk_value_t *result, struct awk_ext_func 
*unused)
        assert(result != NULL);
 
        if (get_argument(0, AWK_STRING, & str)) {
-               ret = (unsigned char)str.str_value.str[0];
+               ret = (unsigned char) str.str_value.str[0];
        } else if (do_lint)
                lintwarn(ext_id, _("ord: first argument is not a string"));
 

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

Summary of changes:
 extension/ChangeLog | 4 ++++
 extension/ordchr.c  | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
gawk



reply via email to

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