summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-01-21 12:48:42 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2019-01-21 12:49:00 -0800
commitbe73ed4338b37973eb67e8fd91aaa9e1166c665c (patch)
treedb6736263d08f66fb1b130d2f1f10b65d0eb6f55
parent657f6fe5008b1090b5670111b53624ecb2cacca0 (diff)
downloademacs-be73ed4338b37973eb67e8fd91aaa9e1166c665c.tar.gz
Simplify pdumper-load via timespectod
Suggested by Eli Zaretskii in: https://lists.gnu.org/r/emacs-devel/2019-01/msg00458.html * src/pdumper.c (pdumper_load): Simplify.
-rw-r--r--src/pdumper.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pdumper.c b/src/pdumper.c
index e57aa8f2a03..6be26dc8168 100644
--- a/src/pdumper.c
+++ b/src/pdumper.c
@@ -5545,10 +5545,7 @@ pdumper_load (const char *dump_filename)
struct timespec load_timespec =
timespec_sub (current_timespec (), start_time);
- ALLOW_IMPLICIT_CONVERSION;
- double s = load_timespec.tv_sec, ns = load_timespec.tv_nsec;
- DISALLOW_IMPLICIT_CONVERSION;
- dump_private.load_time = (s * 1e9 + ns) / 1e9;
+ dump_private.load_time = timespectod (load_timespec);
dump_private.dump_filename = dump_filename_copy;
dump_filename_copy = NULL;