gawk-diffs
[Top][All Lists]
Advanced

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

[SCM] gawk branch, gawk-5.3-stable, updated. gawk-4.1.0-5447-gffad4c6d


From: Arnold Robbins
Subject: [SCM] gawk branch, gawk-5.3-stable, updated. gawk-4.1.0-5447-gffad4c6d
Date: Sat, 13 Jan 2024 11:56:33 -0500 (EST)

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.3-stable has been updated
       via  ffad4c6ddb674f71905ccaf06d82ac1cff1118f4 (commit)
      from  a983618996359fb30070203335529ba8bcd6e073 (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=ffad4c6ddb674f71905ccaf06d82ac1cff1118f4

commit ffad4c6ddb674f71905ccaf06d82ac1cff1118f4
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Sat Jan 13 18:56:10 2024 +0200

    Small fix in extension/time.c.

diff --git a/extension/ChangeLog b/extension/ChangeLog
index 65ee15cd..b8985364 100644
--- a/extension/ChangeLog
+++ b/extension/ChangeLog
@@ -1,3 +1,8 @@
+2024-01-13         Arnold D. Robbins     <arnold@skeeve.com>
+
+       * time.c (do_gettimeofday): Small bug fix. Thanks to
+       Andrew Schorr for pointing it out.
+
 2024-01-12         Arnold D. Robbins     <arnold@skeeve.com>
 
        Use newer interfaces for getting the time if they're available.
diff --git a/extension/time.c b/extension/time.c
index 9dd98738..d3e7e164 100644
--- a/extension/time.c
+++ b/extension/time.c
@@ -114,7 +114,6 @@ do_gettimeofday(int nargs, awk_value_t *result, struct 
awk_ext_func *unused)
        {
                struct timespec tv;
                clock_gettime(CLOCK_REALTIME, & tv);
-               curtime = tv.tv_sec + 0.0;
                curtime = tv.tv_sec+(tv.tv_nsec/1000000000.0);
        }
 #elif defined(HAVE_GETTIMEOFDAY)

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

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


hooks/post-receive
-- 
gawk



reply via email to

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